Consider container commands in Statefulset diffs

This commit is contained in:
Nicolas Bachschmidt 2025-10-29 11:11:45 +01:00
parent 1af4c50ed0
commit c01d8ea0c0
No known key found for this signature in database
GPG Key ID: B44C8B9679DADC24
1 changed files with 2 additions and 0 deletions

View File

@ -625,6 +625,8 @@ func (c *Cluster) compareContainers(description string, setA, setB []v1.Containe
func(a, b v1.Container) bool { return !reflect.DeepEqual(a.SecurityContext, b.SecurityContext) }),
newCheck("new %s's %s (index %d) volume mounts do not match the current one",
func(a, b v1.Container) bool { return !compareVolumeMounts(a.VolumeMounts, b.VolumeMounts) }),
newCheck("new %s's %s (index %d) command does not match the current one",
func(a, b v1.Container) bool { return !reflect.DeepEqual(a.Command, b.Command) }),
}
if !c.OpConfig.EnableLazySpiloUpgrade {