skip clusters with invalid spec

This commit is contained in:
Murat Kabilov
2017-05-16 16:46:37 +02:00
committed by GitHub
parent 1d2fb0091f
commit 356be8f0f1
6 changed files with 130 additions and 44 deletions
+5 -1
View File
@@ -137,7 +137,11 @@ func (c *Cluster) syncStatefulSet() error {
match bool
reason string
)
desiredSS := c.genStatefulSet(cSpec)
desiredSS, err := c.genStatefulSet(cSpec)
if err != nil {
return fmt.Errorf("Can't generate StatefulSet: %s", err)
}
match, rollUpdate, reason = c.compareStatefulSetWith(desiredSS)
if match {
return nil