mirror of
https://github.com/zalando/postgres-operator.git
synced 2026-10-04 17:33:12 +02:00
skip clusters with invalid spec
This commit is contained in:
+5
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user