Open OpenGuidou opened 2 days ago
While investigating in the code, I found out that it's because the kubectl.kubernetes.io/last-applied-configuration
is no longer aligned with the content of the manifest.
It's then doing a 3-way merge, but keeping the changes on the live manifests:
I don't think it's valid in our case, as we want to use the target (config) as source of truth
Similar investigation: https://github.com/argoproj/argo-cd/issues/7951#issuecomment-1343386682
That's an expected behavior from kubectl diffing as of now. I don't know the exact reasons though.
Checklist:
argocd version
.Describe the bug
When a change is done on a resource directly on the target, it is not detected as a diff by Argo CD, and so not self-healed.
To Reproduce
Expected behavior
It should be flagged as a diff and self-healed if the option is set
Screenshots
Desired manifest:
Live manifest:
Diff:
Application:
Version