argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
16.45k stars 4.97k forks source link

fix(controller): copy visited map (#11699) (cherry-pick #12667) #18220

Closed gcp-cherry-pick-bot[bot] closed 1 week ago

gcp-cherry-pick-bot[bot] commented 2 weeks ago

Cherry-picked fix: copy visited map #11699 (#12667)

This commit fixed an issue #11699 that caused a warning even if the cycle didn't exist. Fix false cycle discovery by copying the visited resource map before recursively calling of getAppRecursive.

Fixes #11699

Signed-off-by: Arata Furukawa old.river.new@gmail.com Co-authored-by: Blake Pettersson blake.pettersson@gmail.com