Skip to content

Commit

Permalink
add ownership to config
Browse files Browse the repository at this point in the history
  • Loading branch information
vivekr-splunk committed Nov 19, 2024
1 parent 86826ff commit 97d4e18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/splunk/enterprise/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 97d4e18

Please sign in to comment.