This is an automated email from the ASF dual-hosted git repository.

houston pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/solr-operator.git


The following commit(s) were added to refs/heads/main by this push:
     new 9ea246d  Fix upgrade to v0.9 by updating pod readiness gates (#766)
9ea246d is described below

commit 9ea246d561aff8b0d8d3467425da3863bfd038f0
Author: Houston Putman <[email protected]>
AuthorDate: Mon Mar 17 11:57:42 2025 -0500

    Fix upgrade to v0.9 by updating pod readiness gates (#766)
---
 controllers/util/common.go | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/controllers/util/common.go b/controllers/util/common.go
index 7b2e5c9..0f7fdaa 100644
--- a/controllers/util/common.go
+++ b/controllers/util/common.go
@@ -516,6 +516,12 @@ func CopyPodTemplates(from, to *corev1.PodTemplateSpec, 
basePath string, logger
                to.Spec.TopologySpreadConstraints = 
from.Spec.TopologySpreadConstraints
        }
 
+       if !DeepEqualWithNils(to.Spec.ReadinessGates, from.Spec.ReadinessGates) 
{
+               requireUpdate = true
+               logger.Info("Update required because field changed", "field", 
basePath+"Spec.ReadinessGates", "from", to.Spec.ReadinessGates, "to", 
from.Spec.ReadinessGates)
+               to.Spec.ReadinessGates = from.Spec.ReadinessGates
+       }
+
        return requireUpdate
 }
 

Reply via email to