make the resource prefix in etcd configurable for cohabitation
This commit is contained in:
@@ -59,7 +59,7 @@ type REST struct {
|
||||
|
||||
// NewREST returns a RESTStorage object that will work against replication controllers.
|
||||
func NewREST(opts generic.RESTOptions) (*REST, *StatusREST) {
|
||||
prefix := "/controllers"
|
||||
prefix := "/" + opts.ResourcePrefix
|
||||
|
||||
newListFunc := func() runtime.Object { return &api.ReplicationControllerList{} }
|
||||
storageInterface := opts.Decorator(
|
||||
|
Reference in New Issue
Block a user