diff --git a/pkg/registry/storageclass/etcd/etcd.go b/pkg/registry/storageclass/etcd/etcd.go index 5241547471a..998254c16f5 100644 --- a/pkg/registry/storageclass/etcd/etcd.go +++ b/pkg/registry/storageclass/etcd/etcd.go @@ -32,7 +32,7 @@ type REST struct { // NewREST returns a RESTStorage object that will work against persistent volumes. func NewREST(opts generic.RESTOptions) *REST { - prefix := "/storageclasses" + prefix := "/" + opts.ResourcePrefix newListFunc := func() runtime.Object { return &extensions.StorageClassList{} } storageInterface := opts.Decorator(