-
Notifications
You must be signed in to change notification settings - Fork 258
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
ArgoCD out of sync because of unpredictable list order in networkacl and routetable objects #2053
Comments
Thank you for reporting this @adriananeci - this is indeed a bug, and the controller shouldn't mess with the order of tags or any other field. More reasons to stop sorting/using samberlo |
ArgoCD bugs. It should not react on diff when list elements were in changed order. I could recommed only to remove these particular fields from diff monitoring. The documentation is here: https://argo-cd.readthedocs.io/en/stable/user-guide/diffing/ @a-hilaly it's what we already discussed in context of FluxCD usages. like here #1898 or #1880 |
it's another thing. It is related to kstatus support I believe #1899 The very same issue is with Crossplane project. |
Also proof that ArgoCD still has an issue with the ordering of the lists: |
That won't work because then any changes added to these lists won't be synced by argocd |
@adriananeci thanks, your remark makes sense. |
Wasn't able to reproduce it in the last EC2 ACK version so I guess we can close it. Will open a new issue if there are similar sync issues. |
@adriananeci: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/reopen |
@adriananeci: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
I've already met with @a-hilaly on this. RouteTable objects seems to be fixed but NACLs are still showing out of sync due to list ordering. I showed this over our call together. |
Fixed by aws-controllers-k8s/ec2-controller#208 in v1.2.17 |
Describe the bug
There are few fields in
networkacl
androutetable
objects spec that are of type list (e.gtags
,entries
, etc).I've noticed that the
tags
andentries
values are getting changed by the ack controller once created which means the order of the items from these lists are not set in a predictable order.In the context of ArgoCD, because of the unpredictable order of the elements from a list, an application that creates/reconciles such objects is constantly out of sync
Steps to reproduce
Create an ArgoCD Application that is deploying a
networkacl
object which contains multiple tags and multiple entries in its spec.Expected outcome
ArgoCD Application that is deploying a
networkacl
object should be in a synced stateEnvironment
cc @a-hilaly
The text was updated successfully, but these errors were encountered: