Introduce changes from the PR #200 by @alexeyklyukin

This commit is contained in:
Sergey Dudoladov
2018-02-07 14:02:32 +01:00
parent 60c742a3e8
commit f194a2ae5a
8 changed files with 44 additions and 21 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.WatchedNamespace).Get(podName, metav1.GetOptions{})
masterCandidatePod, err := c.KubeClient.Pods(c.clusterNamespace()).Get(podName, metav1.GetOptions{})
if err != nil {
return fmt.Errorf("could not get master candidate pod: %v", err)
}