Closed KlavsKlavsen closed 3 years ago
It seems to be caused by the upstream (an OCI endpoint) not being available.. When I tried deleting the configmap and then doing hard refresh.. it complained it could not fetch the helm chart.. and after that got sorted - it now shows correct diff.. So There SHOULD have been an error shown.. It MAY be only relevant to OCI backends.. but it'll probably also apply to a normal helm repo backend not being correct.. a test could be to simply point to a none-existing version of the chart (after existing install is green).. and see if it fails clearly or not
hello @KlavsKlavsen , this is actually expected behavior. Argo CD uses the same diffing logic and kubectl diff
: it takes into account only those field that applied using kubectl apply
. So if you manually add new field to data
then it is not considered as a deviation.
So ArgoCD can't really be used for configuration management (like puppet and others can) - where you ALSO use it to detect if "managed resources have been changed in production" ? Then IMHO this should be a feature request issue.. thats a pretty big usecase, I was expecting to be able to use ArgoCd to detect manual changes to our environment (as those are potentially VERY DANGEROUS) - as they break our recovery plan (which is to reinstall with argocd - using code in git - ie. the gitops way).
I have installed yetibot helm chart, using argocd, and I have edited the configmap by hand - and argocd shows all in sync (green).
If I view the configmap in argocd - it shows me this for live:
and this for desired.. and yet the "diff" tab is empty ?
I would have expected it to say "out-of-sync" since I clearly edited data section ?