From aa5ad487d6c0ea768e312e9735a329561b7f4428 Mon Sep 17 00:00:00 2001 From: Tanmay Jain Date: Tue, 7 May 2024 21:16:16 +0530 Subject: [PATCH] deleting rack-id from global config namespaces --- api/v1/aerospikecluster_mutating_webhook.go | 2 ++ 1 file changed, 2 insertions(+) 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