From 86826ff39f725eea9c6ea8eebd2870ac6d2d5d64 Mon Sep 17 00:00:00 2001 From: Vivek Reddy Date: Mon, 18 Nov 2024 22:38:47 +0000 Subject: [PATCH] fixed field manualUpdate in per Cr config Signed-off-by: Vivek Reddy --- pkg/splunk/enterprise/util.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pkg/splunk/enterprise/util.go b/pkg/splunk/enterprise/util.go index 7629515d2..109718abd 100644 --- a/pkg/splunk/enterprise/util.go +++ b/pkg/splunk/enterprise/util.go @@ -256,7 +256,7 @@ func ReconcileCRSpecificConfigMap(ctx context.Context, client splcommon.Controll Namespace: cr.GetNamespace(), }, Data: map[string]string{ - "ManualUpdate": "off", + "manualUpdate": "off", }, } err = client.Create(ctx, configMap) @@ -272,14 +272,14 @@ func ReconcileCRSpecificConfigMap(ctx context.Context, client splcommon.Controll } // Check if the ManualUpdate field exists - if _, exists := configMap.Data["ManualUpdate"]; !exists { - configMap.Data["ManualUpdate"] = "off" + if _, exists := configMap.Data["manualUpdate"]; !exists { + configMap.Data["manualUpdate"] = "off" err = client.Update(ctx, configMap) if err != nil { - scopedLog.Error(err, "Failed to update config map with ManualUpdate field") + scopedLog.Error(err, "Failed to update config map with manualUpdate field") return err } - scopedLog.Info("Updated config map with ManualUpdate set to 'on'") + scopedLog.Info("Updated config map with manualUpdate set to 'on'") } return nil