mutating admission webhook static namespaceselector mutating admission webhook static namespaceselector kubernetes kubernetes

mutating admission webhook static namespaceselector


Seems no, never heard, never found anything like that.

As per MutatingWebhookConfiguration docs property namespaceSelector has a type LabelSelector [meta/v1] that supports

.matchExpressionsmatchExpressions is a list of label selector requirements. The requirements are ANDed.

and

.matchLabelsmatchLabels 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 "key", the operator is "In", and the values array contains only "value". The requirements are ANDed.

And in the end everything is dependent on labels.

For sure you saw these examples