From 1fb98797336ffbf7f618da64b27561b5c627f9db Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Mon, 13 May 2024 15:29:50 +0530 Subject: [PATCH] adding comment --- controllers/configmap.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/controllers/configmap.go b/controllers/configmap.go index b47960596..cb5b1f0da 100644 --- a/controllers/configmap.go +++ b/controllers/configmap.go @@ -107,6 +107,9 @@ func (r *SingleClusterReconciler) createConfigMapData(rack *asdbv1.Rack) ( confData[aerospikeTemplateConfFileName] = confTemp + // This field value is rectified in 3.3.0. + // Ignore rack-id change from hash computation so that on upgrade clusters are + // not rolling restarted. re := regexp.MustCompile(`rack-id.*\d+`) if rackStr := re.FindString(confTemp); rackStr != "" { confTemp = strings.ReplaceAll(confTemp, rackStr, "rack-id 0")