diff --git a/api/v1/aerospikecluster_mutating_webhook.go b/api/v1/aerospikecluster_mutating_webhook.go index 3f3f65d87..e4c4aef67 100644 --- a/api/v1/aerospikecluster_mutating_webhook.go +++ b/api/v1/aerospikecluster_mutating_webhook.go @@ -411,6 +411,8 @@ func setDefaultNsConf(asLog logr.Logger, configSpec AerospikeConfigSpec, err, ) } + } else { + delete(nsMap, "rack-id") } } else { // User may have added this key or may have patched object with new smaller rackEnabledNamespace list