From 5bf2efc581bd8b6109fe9b286b6a94dd87ecc45d Mon Sep 17 00:00:00 2001 From: Hongchao Deng Date: Mon, 8 Aug 2016 15:52:02 -0700 Subject: [PATCH] make reousrce prefix consistent with other registries --- federation/registry/cluster/etcd/etcd.go | 2 +- pkg/registry/certificates/etcd/etcd.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/federation/registry/cluster/etcd/etcd.go b/federation/registry/cluster/etcd/etcd.go index 38f2cc4abf2..1dc2fd70a27 100644 --- a/federation/registry/cluster/etcd/etcd.go +++ b/federation/registry/cluster/etcd/etcd.go @@ -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. func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) { - prefix := "/clusters" + prefix := "/" + opts.ResourcePrefix newListFunc := func() runtime.Object { return &federation.ClusterList{} } storageInterface := opts.Decorator( diff --git a/pkg/registry/certificates/etcd/etcd.go b/pkg/registry/certificates/etcd/etcd.go index b806e6aa00b..72e21ff7f1b 100644 --- a/pkg/registry/certificates/etcd/etcd.go +++ b/pkg/registry/certificates/etcd/etcd.go @@ -37,7 +37,7 @@ type REST struct { // NewREST returns a registry which will store CertificateSigningRequest in the given helper func NewREST(opts generic.RESTOptions) (*REST, *StatusREST, *ApprovalREST) { - prefix := "/certificatesigningrequests" + prefix := "/" + opts.ResourcePrefix newListFunc := func() runtime.Object { return &certificates.CertificateSigningRequestList{} } storageInterface := opts.Decorator(