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
+1 -1
View File
@@ -80,7 +80,7 @@ func (c *Controller) moveMasterPodsOffNode(node *v1.Node) {
opts := metav1.ListOptions{
LabelSelector: labels.Set(c.opConfig.ClusterLabels).String(),
}
podList, err := c.KubeClient.Pods(c.opConfig.Namespace).List(opts)
podList, err := c.KubeClient.Pods(c.opConfig.WatchedNamespace).List(opts)
if err != nil {
c.logger.Errorf("could not fetch list of the pods: %v", err)
return