Skip to content

Commit 86826ff

Browse files
committed
fixed field manualUpdate in per Cr config
Signed-off-by: Vivek Reddy <[email protected]>
1 parent 9593814 commit 86826ff

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pkg/splunk/enterprise/util.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ func ReconcileCRSpecificConfigMap(ctx context.Context, client splcommon.Controll
256256
Namespace: cr.GetNamespace(),
257257
},
258258
Data: map[string]string{
259-
"ManualUpdate": "off",
259+
"manualUpdate": "off",
260260
},
261261
}
262262
err = client.Create(ctx, configMap)
@@ -272,14 +272,14 @@ func ReconcileCRSpecificConfigMap(ctx context.Context, client splcommon.Controll
272272
}
273273

274274
// Check if the ManualUpdate field exists
275-
if _, exists := configMap.Data["ManualUpdate"]; !exists {
276-
configMap.Data["ManualUpdate"] = "off"
275+
if _, exists := configMap.Data["manualUpdate"]; !exists {
276+
configMap.Data["manualUpdate"] = "off"
277277
err = client.Update(ctx, configMap)
278278
if err != nil {
279-
scopedLog.Error(err, "Failed to update config map with ManualUpdate field")
279+
scopedLog.Error(err, "Failed to update config map with manualUpdate field")
280280
return err
281281
}
282-
scopedLog.Info("Updated config map with ManualUpdate set to 'on'")
282+
scopedLog.Info("Updated config map with manualUpdate set to 'on'")
283283
}
284284

285285
return nil

0 commit comments

Comments
 (0)