From c01d8ea0c04673b01dddccea44ead6a0b2bb7d38 Mon Sep 17 00:00:00 2001 From: Nicolas Bachschmidt Date: Wed, 29 Oct 2025 11:11:45 +0100 Subject: [PATCH] Consider container commands in Statefulset diffs --- pkg/cluster/cluster.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/cluster/cluster.go b/pkg/cluster/cluster.go index 9cd750e84..07fbdbf95 100644 --- a/pkg/cluster/cluster.go +++ b/pkg/cluster/cluster.go @@ -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 {