replace statefulset on annotation diff (#1449)

* replace statefulset on annotation diff
* remove update annotation function for statefulset
* add unit test for syncing annotations
* add inherited annotation to unit test
This commit is contained in:
Felix Kunde
2021-04-22 11:22:52 +02:00
committed by GitHub
parent 6b73ac4282
commit 32e6c135b9
4 changed files with 120 additions and 32 deletions
-2
View File
@@ -373,8 +373,6 @@ func (c *Cluster) syncStatefulSet() error {
}
}
c.updateStatefulSetAnnotations(c.AnnotationsToPropagate(c.annotationsSet(c.Statefulset.Annotations)))
if len(podsToRecreate) == 0 && !c.OpConfig.EnableLazySpiloUpgrade {
// even if the desired and the running statefulsets match
// there still may be not up-to-date pods on condition