Skip to content

Commit

Permalink
Update init image
Browse files Browse the repository at this point in the history
  • Loading branch information
sud82 committed May 18, 2024
1 parent 84b22a8 commit 622ad90
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions api/v1/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ const (
AerospikeInitContainerName = "aerospike-init"
AerospikeInitContainerRegistryEnvVar = "AEROSPIKE_KUBERNETES_INIT_REGISTRY"
AerospikeInitContainerDefaultRegistry = "docker.io"
AerospikeInitContainerDefaultRegistryNamespace = "tanmayj10"
AerospikeInitContainerDefaultRepoAndTag = "aerospike-kubernetes-init-nightly:2.2.0"
AerospikeInitContainerDefaultRegistryNamespace = "aerospike"
AerospikeInitContainerDefaultRepoAndTag = "aerospike-kubernetes-init:2.2.0-dev4"
AerospikeAppLabel = "app"
AerospikeAppLabelValue = "aerospike-cluster"
AerospikeCustomResourceLabel = "aerospike.com/cr"
Expand Down
6 changes: 3 additions & 3 deletions controllers/rack.go
Original file line number Diff line number Diff line change
Expand Up @@ -1797,19 +1797,19 @@ func (r *SingleClusterReconciler) getPodsWithUpdatedConfigForRack(rackState *Rac

requiredConfHash := confMap.Data[aerospikeConfHashFileName]

securityEnabledPods := make([]corev1.Pod, 0, len(pods))
updatedPods := make([]corev1.Pod, 0, len(pods))

for idx := range pods {
podName := pods[idx].Name
podStatus := r.aeroCluster.Status.Pods[podName]

if podStatus.AerospikeConfigHash == requiredConfHash {
// Config hash is matching, it means config has been applied
securityEnabledPods = append(securityEnabledPods, *pods[idx])
updatedPods = append(updatedPods, *pods[idx])
}
}

return securityEnabledPods, nil
return updatedPods, nil
}

func isContainerNameInStorageVolumeAttachments(
Expand Down

0 comments on commit 622ad90

Please sign in to comment.