Skip to content

Commit 97d4e18

Browse files
committed
add ownership to config
1 parent 86826ff commit 97d4e18

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/splunk/enterprise/util.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ func ReconcileCRSpecificConfigMap(ctx context.Context, client splcommon.Controll
259259
"manualUpdate": "off",
260260
},
261261
}
262+
configMap.SetOwnerReferences(append(configMap.GetOwnerReferences(), splcommon.AsOwner(cr, true)))
262263
err = client.Create(ctx, configMap)
263264
if err != nil {
264265
scopedLog.Error(err, "Failed to create config map")

0 commit comments

Comments
 (0)