make reousrce prefix consistent with other registries

This commit is contained in:
Hongchao Deng 2016-08-03 13:31:56 -07:00
parent 8f4f682659
commit fc47f08183

View File

@ -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(