Rename the configmap 'namespace' entry to avoid confusion with the map's owm namespace

This commit is contained in:
Sergey Dudoladov
2018-02-06 15:09:00 +01:00
parent dcf637d4ea
commit ea84f9d577
7 changed files with 13 additions and 12 deletions
+2 -2
View File
@@ -46,7 +46,7 @@ func (c *Controller) clusterListFunc(options metav1.ListOptions) (runtime.Object
req := c.KubeClient.CRDREST.
Get().
Namespace(c.opConfig.Namespace).
Namespace(c.opConfig.WatchedNamespace).
Resource(constants.CRDResource).
VersionedParams(&options, metav1.ParameterCodec)
@@ -110,7 +110,7 @@ func (c *Controller) clusterWatchFunc(options metav1.ListOptions) (watch.Interfa
options.Watch = true
r, err := c.KubeClient.CRDREST.
Get().
Namespace(c.opConfig.Namespace).
Namespace(c.opConfig.WatchedNamespace).
Resource(constants.CRDResource).
VersionedParams(&options, metav1.ParameterCodec).
FieldsSelectorParam(nil).