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
@@ -110,7 +110,7 @@ func (c *Cluster) preScaleDown(newStatefulSet *v1beta1.StatefulSet) error {
}
podName := fmt.Sprintf("%s-0", c.Statefulset.Name)
masterCandidatePod, err := c.KubeClient.Pods(c.OpConfig.Namespace).Get(podName, metav1.GetOptions{})
masterCandidatePod, err := c.KubeClient.Pods(c.OpConfig.WatchedNamespace).Get(podName, metav1.GetOptions{})
if err != nil {
return fmt.Errorf("could not get master candidate pod: %v", err)
}