acoustic-carpenter-78188
07/02/2026, 8:37 PMinject-flyte-secrets label in all namespaces with failurePolicy: Fail, so it intercepts and can reject v1 task pods. webhook.disableCreateMutatingWebhookConfig exists in the config but was never read.
What changes were proposed in this pull request?
Two independent commits:
1. Honor disableCreateMutatingWebhookConfig in webhook Setup, so operators can manage a scoped MutatingWebhookConfiguration themselves.
2. Add optional webhook.namespaceSelector applied to the generated MutatingWebhookConfiguration. Nil keeps the current behavior of matching all namespaces.
How was this patch tested?
Added executor/pkg/webhook/pod_test.go covering selector propagation and the nil default; go test ./executor/pkg/webhook/ ./flyteplugins/go/tasks/pluginmachinery/secret/config/.
Labels
• fixed: webhook.disableCreateMutatingWebhookConfig is now honored
• added: webhook.namespaceSelector to scope the generated MutatingWebhookConfiguration
flyteorg/flyteacoustic-carpenter-78188
07/04/2026, 9:51 PM