Skip to content

Commit

Permalink
feat(profile-controller): propagate labels from CR to namespace
Browse files Browse the repository at this point in the history
Signed-off-by: droctothorpe <mythicalsunlight@gmail.com>
Co-authored-by: jsonmp-k8 <paul.jaison@gmail.com>
Co-authored-by: tarat44 <32471142+tarat44@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 22, 2024
1 parent 1efae04 commit 829655b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ func (r *ProfileReconciler) Reconcile(ctx context.Context, request ctrl.Request)
},
}
setNamespaceLabels(ns, defaultKubeflowNamespaceLabels)
setNamespaceLabels(ns, instance.ObjectMeta.Labels)
logger.Info("List of labels to be added to namespace", "labels", ns.Labels)
if err := controllerutil.SetControllerReference(instance, ns, r.Scheme); err != nil {
IncRequestErrorCounter("error setting ControllerReference", SEVERITY_MAJOR)
Expand Down

0 comments on commit 829655b

Please sign in to comment.