make the resource prefix in etcd configurable for cohabitation
This commit is contained in:
@@ -66,7 +66,7 @@ func (r *StatusREST) Update(ctx api.Context, name string, objInfo rest.UpdatedOb
|
||||
|
||||
// NewREST returns a RESTStorage object that will work against nodes.
|
||||
func NewStorage(opts generic.RESTOptions, connection client.ConnectionInfoGetter, proxyTransport http.RoundTripper) NodeStorage {
|
||||
prefix := "/minions"
|
||||
prefix := "/" + opts.ResourcePrefix
|
||||
|
||||
newListFunc := func() runtime.Object { return &api.NodeList{} }
|
||||
storageInterface := opts.Decorator(
|
||||
|
Reference in New Issue
Block a user