Skip to content

Commit

Permalink
adding comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayja committed May 13, 2024
1 parent 7d6f3b6 commit 1fb9879
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/configmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 1fb9879

Please sign in to comment.