You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Replace ownerReferences with a finalizer but that's a complex workaround.
Provide a flag to not set ownerReferences
Also it feels like the mesh deletion may need to have a finalizer anyway because of DPP deletion.
Indeed, we currently check for dpp count in mesh_validator which means that in a webhook we call the api which is not ideal. It also makes things kubectl delete -f not working very well.
The text was updated successfully, but these errors were encountered:
Introduce a new config flag to not add ownerReference to resources.
This is useful when using argoCD which will refuse deleting resources
if they have an ownerReference
Fixkumahq#9541
Signed-off-by: Charly Molter <charly.molter@konghq.com>
Introduce a new config flag to not add ownerReference to resources.
This is useful when using argoCD which will refuse deleting resources
if they have an ownerReference
Fix#9541
Signed-off-by: Charly Molter <charly.molter@konghq.com>
Description
When using Argo to manage policies the policies do not get deleted. This is because we add an ownerReference with the name of the mesh.
This is done there:
https://github.com/kumahq/kuma/blob/master/pkg/plugins/runtime/k8s/webhooks/owner_reference_mutator.go
We need to figure if it's an argo bug or something else. Some pointers to related argo issues:
OwnerReference
not deleted when removed from Helm Chart argoproj/argo-cd#4764controller
flag in owner references argoproj/argo-cd#12210Potential fixes:
Also it feels like the mesh deletion may need to have a finalizer anyway because of DPP deletion.
Indeed, we currently check for dpp count in
mesh_validator
which means that in a webhook we call the api which is not ideal. It also makes thingskubectl delete -f
not working very well.The text was updated successfully, but these errors were encountered: