<#7619 fix(webhook): allow disabling or scoping th...
# flyte-github
a
#7619 fix(webhook): allow disabling or scoping the self-registered MutatingWebhookConfiguration Pull request opened by moldhouse Tracking issue Closes #7618 Related to #7614, v1 counterpart of #7616. Why are the changes needed? Running Flyte 1 and Flyte 2 in the same cluster is the recommended migration setup, but the propeller webhook always registers a MutatingWebhookConfiguration matching the
inject-flyte-secrets
label in all namespaces with
failurePolicy: Fail
, so it intercepts and rejects the other control plane's secret-requesting task pods. #7616 fixed the v2 side; this is the v1 side. What changes were proposed in this pull request? Two independent commits, mirroring #7616: 1. Add
webhook.disableCreateMutatingWebhookConfig
(same key as v2), skipping self-registration so operators can manage a scoped MutatingWebhookConfiguration out of band. Includes the regenerated pflags files. 2. Add optional
webhook.namespaceSelector
applied to the generated MutatingWebhookConfiguration. Nil keeps the current behavior of matching all namespaces. How was this patch tested? Extended
Test_CreateMutationWebhookConfiguration
with selector propagation and nil-default cases;
go test ./pkg/webhook/...
in
flytepropeller
. Labels • added:
webhook.disableCreateMutatingWebhookConfig
and
webhook.namespaceSelector
options to scope or disable the self-registered MutatingWebhookConfiguration flyteorg/flyte