config/default/mutation_webhook_namespace_selector_patch.yaml (12 lines of code) (raw):

apiVersion: admissionregistration.k8s.io/v1 kind: MutatingWebhookConfiguration metadata: name: mutating-webhook-configuration webhooks: - name: mflinkcluster.flinkoperator.k8s.io # Change selector below for your namespaces. namespaceSelector: matchExpressions: - key: flink-operator-namespace operator: "In" values: - $(OPERATOR_NAMESPACE)