diff --git a/pkg/splunk/enterprise/util.go b/pkg/splunk/enterprise/util.go index 109718abd..32db09a99 100644 --- a/pkg/splunk/enterprise/util.go +++ b/pkg/splunk/enterprise/util.go @@ -259,6 +259,7 @@ func ReconcileCRSpecificConfigMap(ctx context.Context, client splcommon.Controll "manualUpdate": "off", }, } + configMap.SetOwnerReferences(append(configMap.GetOwnerReferences(), splcommon.AsOwner(cr, true))) err = client.Create(ctx, configMap) if err != nil { scopedLog.Error(err, "Failed to create config map")