Skip to content

Commit

Permalink
Remove isSecurityEnabled flag
Browse files Browse the repository at this point in the history
  • Loading branch information
sud82 committed May 10, 2024
1 parent 667868a commit dcd9997
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions pkg/update_pod_status_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -593,29 +593,18 @@ func (initp *InitParams) manageVolumesAndUpdateStatus(ctx context.Context, resta
}
}

ver, err := asdbv1.GetImageVersion(initp.aeroCluster.Spec.Image)
if err != nil {
return err
}

securityEnabled, err := asdbv1.IsSecurityEnabled(ver, initp.aeroCluster.Spec.AerospikeConfig)
if err != nil {
return err
}

metadata := initp.getNodeMetadata()
metadata.Image = podImage
metadata.InitializedVolumes = initializedVolumes
metadata.DirtyVolumes = dirtyVolumes
metadata.DynamicConfigUpdateStatus = ""
metadata.IsSecurityEnabled = securityEnabled

data, err := os.ReadFile(aerospikeConf)
if err != nil {
return err
}

if err := retry.OnError(retry.DefaultBackoff, func(err error) bool {
if err := retry.OnError(retry.DefaultBackoff, func(_ error) bool {
// Customize the error check for retrying, return true to retry, false to stop retrying
return true
}, func() error {
Expand Down

0 comments on commit dcd9997

Please sign in to comment.