Skip to content

Commit

Permalink
Merge pull request #30020 from hongchaodeng/fix
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

make reousrce prefix consistent with other registries

Storage class registry was added recently in #29694.
In other registries, resource prefix was changed to a more generic way using RESTOptions.ResourcePrefix.

This PR is an attempt to make both consistent.
  • Loading branch information
Kubernetes Submit Queue authored Aug 5, 2016
2 parents b1f8ba9 + fc47f08 commit 996df92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/registry/storageclass/etcd/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 996df92

Please sign in to comment.