Commit 5bf2efc5 authored by Hongchao Deng's avatar Hongchao Deng

make reousrce prefix consistent with other registries

parent be6a9fbb
...@@ -46,7 +46,7 @@ func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedOb ...@@ -46,7 +46,7 @@ func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedOb
// NewREST returns a RESTStorage object that will work against clusters. // NewREST returns a RESTStorage object that will work against clusters.
func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) { func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
prefix := "/clusters" prefix := "/" + opts.ResourcePrefix
newListFunc := func() runtime.Object { return &federation.ClusterList{} } newListFunc := func() runtime.Object { return &federation.ClusterList{} }
storageInterface := opts.Decorator( storageInterface := opts.Decorator(
......
...@@ -37,7 +37,7 @@ type REST struct { ...@@ -37,7 +37,7 @@ type REST struct {
// NewREST returns a registry which will store CertificateSigningRequest in the given helper // NewREST returns a registry which will store CertificateSigningRequest in the given helper
func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *ApprovalREST) { func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *ApprovalREST) {
prefix := "/certificatesigningrequests" prefix := "/" + opts.ResourcePrefix
newListFunc := func() runtime.Object { return &certificates.CertificateSigningRequestList{} } newListFunc := func() runtime.Object { return &certificates.CertificateSigningRequestList{} }
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