Dont swallog pod list error.

This commit is contained in:
Jan Mußler 2021-02-25 11:28:27 +01:00
parent 92a855372d
commit f600fc5785
1 changed files with 5 additions and 1 deletions

View File

@ -55,7 +55,11 @@ func (c *Cluster) majorVersionUpgrade() error {
return nil
}
pods, _ := c.listPods()
pods, err := c.listPods()
if err != nil {
return err
}
allRunning := true
var masterPod *v1.Pod