<#7616 fix(webhook): honor disableCreateMutatingWe...
# flyte-github
a
#7616 fix(webhook): honor disableCreateMutatingWebhookConfig, add namespaceSelector Pull request opened by moldhouse Tracking issue Closes #7614 Why are the changes needed? Running Flyte v2 alongside a Flyte v1 deployment in the same cluster breaks v1: the executor always registers a MutatingWebhookConfiguration that matches the
inject-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/flyte