Skip to content
Snippets Groups Projects
Unverified Commit 88c68712 authored by Manuel Gómez's avatar Manuel Gómez Committed by GitHub
Browse files

Fix statefulset label selector diffing (#273)

Otherwise, rolling updates are done unnecessarily.
parent 9bf80afa
Branches
Tags
No related merge requests found
...@@ -348,11 +348,10 @@ func (c *Cluster) compareStatefulSetWith(statefulSet *v1beta1.StatefulSet) *comp ...@@ -348,11 +348,10 @@ func (c *Cluster) compareStatefulSetWith(statefulSet *v1beta1.StatefulSet) *comp
c.logger.Warningf("new statefulset introduces extra labels in the label selector, cannot continue") c.logger.Warningf("new statefulset introduces extra labels in the label selector, cannot continue")
return &compareStatefulsetResult{} return &compareStatefulsetResult{}
} }
}
needsReplace = true needsReplace = true
needsRollUpdate = true
reasons = append(reasons, "new statefulset's selector doesn't match the current one") reasons = append(reasons, "new statefulset's selector doesn't match the current one")
} }
}
if !reflect.DeepEqual(c.Statefulset.Spec.Template.Annotations, statefulSet.Spec.Template.Annotations) { if !reflect.DeepEqual(c.Statefulset.Spec.Template.Annotations, statefulSet.Spec.Template.Annotations) {
needsRollUpdate = true needsRollUpdate = true
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment