Avoid orphaned objects on delete (#654)

* Make setSpec function work correctly when updating cluster status fails
This commit is contained in:
Felix Kunde
2019-08-27 12:54:35 +02:00
committed by Sergey Dudoladov
parent fd6a2454e8
commit 4a863d2280
3 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -365,7 +365,7 @@ func (c *Cluster) waitStatefulsetPodsReady() error {
c.setProcessName("waiting for the pods of the statefulset")
// TODO: wait for the first Pod only
if err := c.waitStatefulsetReady(); err != nil {
return fmt.Errorf("statuful set error: %v", err)
return fmt.Errorf("stateful set error: %v", err)
}
// TODO: wait only for master