Skip to content

Commit

Permalink
checking aerospikeConf annotation availability in pod
Browse files Browse the repository at this point in the history
  • Loading branch information
tanmayja committed May 7, 2024
1 parent cb07826 commit 0baff72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/v1/aerospikecluster_validating_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -1265,7 +1265,7 @@ func validateSecurityConfigUpdate(
}

if currentSecurityConfig && !desiredSecurityConfig {
return fmt.Errorf("cannot disable security in running cluster")
return fmt.Errorf("cannot disable cluster security in running cluster")
}
}

Expand Down
2 changes: 1 addition & 1 deletion controllers/reconciler.go
Original file line number Diff line number Diff line change
Expand Up @@ -1063,7 +1063,7 @@ func (r *SingleClusterReconciler) handleEnableDynamicConfig() error {

for idx := range pods.Items {
pod := &pods.Items[idx]
if pod.Annotations == nil {
if _, ok := pod.Annotations["aerospikeConf"]; !ok {
if err := r.updateAerospikeConfInPod(pod.Name); err != nil {
return err
}
Expand Down

0 comments on commit 0baff72

Please sign in to comment.