Open domechn opened 6 months ago
not sure whether it is caused by this function
https://github.com/argoproj/argo-cd/blob/release-2.8/util/argo/resource_tracking.go#L211
it seems when argocd does comparision, and it finds tracking method is not label
, it will override tracking id annotation in live
by using tracking annotation value in target
, this behavior makes there is no difference between live tracking annotation value and target tracking annotation value.
Checklist:
argocd version
.Describe the bug
Currently we are using
annotation+label
to track argocd resources.But When we moved k8s resources from A application to B application, we found that the tracking label can be updated successfully, but the tracking annotation cannot be updated.
Also we checked the argocd diff on argocd ui, it showed there was no difference between before and after.
To Reproduce
annotation+label
as tracking method.Expected behavior
argocd.argoproj.io/tracking-id
annotation can be updated successfullyScreenshots
Version
Logs