Skip to content

Commit

Permalink
promote managed label (#807)
Browse files Browse the repository at this point in the history
  • Loading branch information
jpinsonneau authored Oct 8, 2024
1 parent 017d213 commit 1f925ac
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/monitoring/monitoring_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ func (r *Reconciler) reconcile(ctx context.Context, clh *helper.Client, desired
return err
}
desiredNs := buildNamespace(ns, r.mgr.Config.DownstreamDeployment)
// always add owned label to desired namespace as we expect it to be created
helper.AddOwnedLabel(desiredNs)
if nsExist == nil {
err = r.Create(ctx, desiredNs)
if err != nil {
Expand Down

0 comments on commit 1f925ac

Please sign in to comment.