treat initContainers like Spilo image

This commit is contained in:
Felix Kunde
2020-06-11 12:05:47 +02:00
parent 5e036900de
commit f58f92dd80
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -532,7 +532,7 @@ func (c *Cluster) compareContainers(description string, setA, setB []v1.Containe
func(a, b v1.Container) bool { return !reflect.DeepEqual(a.EnvFrom, b.EnvFrom) }),
}
if !c.OpConfig.EnableLazySpiloUpgrade || description == "initContainers" {
if !c.OpConfig.EnableLazySpiloUpgrade {
checks = append(checks, newCheck("new statefulset %s's %s (index %d) image doesn't match the current one",
func(a, b v1.Container) bool { return a.Image != b.Image }))
}