Fixes an issue with ServiceAccounts caused by the drift in the manifest spec's imagePullSecret and secrets fields that triggers a recurring sync in argoCD.
From the application point of view, it is in constant out-of-sync status while it attempts to synchronize.
With this change, ArgoCD will ignore the pullImageSecret and secrets difference.
@sabre1041 @nasx please review. I needed only imagePullSecrets, but I thought adding secrets might be also worth it since it can also be a cause of out-of-sync in other cases. Let me know if you want me to narrow it to only imagePullSecrets.
There is another way to approach this, and that's to define this specifically to an Application manifest, rather than globally in ArgoCD, just by adding this snippet of code to the Application manifest:
Fixes an issue with ServiceAccounts caused by the drift in the manifest spec's
imagePullSecret
andsecrets
fields that triggers a recurring sync in argoCD.From the application point of view, it is in constant
out-of-sync
status while it attempts to synchronize.With this change, ArgoCD will ignore the
pullImageSecret
andsecrets
difference.@sabre1041 @nasx please review. I needed only
imagePullSecrets
, but I thought addingsecrets
might be also worth it since it can also be a cause of out-of-sync in other cases. Let me know if you want me to narrow it to onlyimagePullSecrets
.There is another way to approach this, and that's to define this specifically to an
Application
manifest, rather than globally in ArgoCD, just by adding this snippet of code to theApplication
manifest:Let me know which one you prefer.