-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OutOfSync for HPA, due not sorted yaml keys #7846
Comments
Related upstream issue: kubernetes/kubernetes#74099 |
Ran into the same issue. The workaround mentioned in #1079 (comment) under item 1 does not work for us, because while we have some control over the ordering of |
Hello everyone, It seems that somehow ArgoCD is ordering alphabetically the metrics on the generated manifest and that causes the differences because the oficial helm chart is written in another way: This means that argocd is ordering alphabetically the metrics to be compared when it should follow the helm chart manifest. Thank you! |
This isn't ArgoCD doing it - ArgoCD is comparing the order in the chart to the one the cluster reports, and seeing a diff. When it changes the cluster to match the chart, something in the cluster (HPA Controller, apiserver etc) is reordering them. The component changing the ordering is the one that needs to be fixed - see kubernetes/kubernetes#74099 |
To demonstrate, without using ArgoCD at all:
When we check it after apply, they come back in a different order to the one I asked for |
Thanks for the explanation @mikebryant. |
@ricardojdsilva87 What version of Kubernetes are you on? |
Is this still an issue in newer versions? |
Describe the bug
When adding a HPA, with memory and cpu limits, then argoCD application appears
OutOfSync
.This is because of not consequent sorting the
live
manifest and thedesired
manifest.To Reproduce
Applying a hpa like:
Expected behavior
ArgoCd shoulnd't mark such projects
OutOfSync
Screenshots
Version
Argo CD
v2.1.7+a408e29
The text was updated successfully, but these errors were encountered: