<#7618 [BUG] propeller pod webhook self-registers ...
# flyte-github
a
#7618 [BUG] propeller pod webhook self-registers cluster-wide; cannot be scoped or disabled Issue created by moldhouse V1 counterpart of #7614 (the Flyte 2 side was fixed in #7616). Problem The propeller webhook always creates a MutatingWebhookConfiguration with no
namespaceSelector
, matching
inject-flyte-secrets: "true"
in all namespaces with
failurePolicy: Fail
(
flytepropeller/pkg/webhook/entrypoint.go
,
pod.go
). No config option disables or scopes it, and manual edits are lost because the binary replaces
.webhooks
on every startup. Impact This blocks the recommended migration setup of running Flyte 1 and Flyte 2 in the same cluster. #7616 stops the v2 webhook from intercepting v1 pods; this issue is the reverse direction: the v1 webhook intercepts v2's secret-requesting task pods (same label), cannot resolve their secrets, and rejects them. Side-by-side operation is only safe once both sides can be scoped. Proposed fix Mirror #7616 on `master`: add a
webhook.disableCreateMutatingWebhookConfig
option (same key as v2) and support
webhook.namespaceSelector
on the generated configuration. PR follows. flyteorg/flyte