<p>Does anyone know if there is a way to define static selectors based on the namespace name instead of label selectors? The reason is that some of the namespaces are created by an operator and I don't have any control over the labels.</p>
<p>Thanks
Essey</p>

Erkan
<p>Seems no, never heard, never found anything like that.</p>
<p>As per  <a href="https://docs.openshift.com/container-platform/4.5/rest_api/extension_apis/mutatingwebhookconfiguration-admissionregistration-k8s-io-v1.html" rel="nofollow noreferrer">MutatingWebhookConfiguration docs</a> property <code>namespaceSelector</code> has a type <a href="https://docs.openshift.com/container-platform/4.5/rest_api/objects/index.html#labelselector-meta-v1" rel="nofollow noreferrer">LabelSelector [meta/v1]</a> that supports</p>
<pre><code>.matchExpressions
matchExpressions is a list of label selector requirements. The requirements are ANDed.
</code></pre>
<p>and</p>
<pre><code>.matchLabels
matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is &quot;key&quot;, the operator is &quot;In&quot;, and the values array contains only &quot;value&quot;. The requirements are ANDed.
</code></pre>
<p>And in the end everything is dependent on <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels" rel="nofollow noreferrer">labels</a>.</p>
<p>For sure you saw <a href="https://kubernetes.io/docs/concepts/overview/working-with-objects/labels" rel="nofollow noreferrer">these examples</a></p>
