// Module included in the following assemblies:
//
// * ai_workloads/kueue/install-kueue.adoc
// * ai_workloads/kueue/install-disconnected.adoc

:_mod-docs-content-type: PROCEDURE
[id="label-namespaces_{context}"]
= Labeling namespaces to allow {kueue-name} to manage jobs

[role="_abstract"]
You must add the `kueue.openshift.io/managed=true` label to each namespace where you want {kueue-name} to manage jobs, because the Operator only enforces policies on labeled namespaces.

.Prerequisites

* You have cluster administrator permissions.
* The {kueue-name} Operator is installed on your cluster, and you have created a `Kueue` custom resource (CR).
* You have installed the {oc-first}.

.Procedure

* Add the `kueue.openshift.io/managed=true` label to a namespace by running the following command:
+
[source,terminal]
----
$ oc label namespace <namespace> kueue.openshift.io/managed=true
----
+
When you add this label, you instruct the {kueue-name} Operator that the namespace is managed by its webhook admission controllers. As a result, any {kueue-name} resources within that namespace are properly validated and mutated.
