<#6692 [BUG] Invalid namespaced owner reference at...
# flyte-github
a
#6692 [BUG] Invalid namespaced owner reference attached to mutatingwebhookconfigurations Issue created by mhotan ### Flyte & Flytekit version Latest ### Describe the bug Currently, we are adding an owner reference that is namespaced to
<http://mutatingwebhookconfigurations.admissionregistration.k8s.io|mutatingwebhookconfigurations.admissionregistration.k8s.io>
, specifically the
flyte-pod-webhook
. This is not valid and will cause mgcs to be orphaned on uninstall.
Cluster-scoped dependents can only specify cluster-scoped owners. In v1.20+, if a cluster-scoped dependent specifies a namespaced kind as an owner, it is treated as having an unresolvable owner reference, and is not able to be garbage collected.
Ref: https://kubernetes.io/docs/concepts/overview/working-with-objects/owners-dependents/#owner-references-in-object-specifications ### Expected behavior At a minimum, we should not set the owner reference and set labels to label owners. ### Additional context to reproduce No response ### Screenshots No response ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte