Commit fc47f081 authored by Hongchao Deng's avatar Hongchao Deng

make reousrce prefix consistent with other registries

parent 8f4f6826
...@@ -32,7 +32,7 @@ type REST struct { ...@@ -32,7 +32,7 @@ type REST struct {
// NewREST returns a RESTStorage object that will work against persistent volumes. // NewREST returns a RESTStorage object that will work against persistent volumes.
func NewREST(opts generic.RESTOptions) *REST { func NewREST(opts generic.RESTOptions) *REST {
prefix := "/storageclasses" prefix := "/" + opts.ResourcePrefix
newListFunc := func() runtime.Object { return &extensions.StorageClassList{} } newListFunc := func() runtime.Object { return &extensions.StorageClassList{} }
storageInterface := opts.Decorator( storageInterface := opts.Decorator(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment