diff --git a/controllers/rack.go b/controllers/rack.go index 849afb636..6a717dec1 100644 --- a/controllers/rack.go +++ b/controllers/rack.go @@ -1797,7 +1797,7 @@ func (r *SingleClusterReconciler) getPodsWithUpdatedConfigForRack(rackState *Rac requiredConfHash := confMap.Data[aerospikeConfHashFileName] - securityEnabledPods := make([]corev1.Pod, 0, len(r.aeroCluster.Status.Pods)) + securityEnabledPods := make([]corev1.Pod, 0, len(pods)) for idx := range pods { podName := pods[idx].Name