Avoid tracking resources conflict with helm deployments

The traefik deployment is helm based, and therefore it automatically adds the label app.kubernetes.io/instance: traefik. This presents a problem with Argo since by default uses that label to keep track of which resources it has deployed and perform pruning.

We can change the behaviour to still add the useful label but instead use an annotation to keep track of the resources. This will allow us to correctly mark the resources and add pruning to that project.

Reference https://argo-cd.readthedocs.io/en/stable/user-guide/resource_tracking/

Edited by Miguel Sacristán

Merge request reports

Loading