mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 07:47:56 +00:00
Merge pull request #30020 from hongchaodeng/fix
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.
This commit is contained in:
commit
996df923a1
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user