Skip to content
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 cannot sync itself when a healthcheck is removed from the values file #2455

Closed
perlinger opened this issue Jan 26, 2024 · 7 comments · Fixed by #2459
Closed

Argocd cannot sync itself when a healthcheck is removed from the values file #2455

perlinger opened this issue Jan 26, 2024 · 7 comments · Fixed by #2459
Labels
argo-cd bug Something isn't working question

Comments

@perlinger
Copy link

Describe the bug

This bug may be related to issue #2450.
We are wondering if argocd supports making changes to health checks without restarting argocd.

Related helm chart

argo-cd

Helm chart version

v5.14.1

To Reproduce

To reproduce the issue, please follow these steps:

  1. Have a cluster running with a lua health check in the values file.
  2. Remove the health check.
  3. We are finding that argocd starts to hang.
  4. When we delete all the argocd pods and when the pods reinstall then argocd starts to sync again and the change takes affect.

Expected behavior

After removing the health check, expect argocd to sync itself

Screenshots

No response

Additional context

No response

@perlinger perlinger added the bug Something isn't working label Jan 26, 2024
@perlinger
Copy link
Author

Is it the case that ArgoCD restarts on a change to the configmap named argocd-cmd-params-cm.

@pdrastil
Copy link
Member

@crenshaw-dev Hi Michael - if I remember right argocd-cm was watched ConfigMap with hot reload. Can you confirm that that is the correct assumption or we are just missing checksum to restart controllers on config change.

@yu-croco
Copy link
Collaborator

FYI
I found the same question in the past. Below is the answer.
#1664 (reply in thread)

@perlinger
Copy link
Author

perlinger commented Jan 27, 2024

We found that adding this snippet to our values.yaml file did the trick. It basically passed the annotation right into the Deployment, which made Kubernetes restart the pod. It helped get the updated ConfigMap in place.

global:
  podAnnotations:
    "argocdcm": "argocd-cm updated 01/26/2024. This is a short term manual fix"

Thoughts?

@yu-croco
Copy link
Collaborator

yu-croco commented Jan 28, 2024

which means Argo CD server doesn't watch some of the data in argocd-cm CM if they are updated or not .... 👀

@pdrastil
Copy link
Member

Seems like it - as simple fix we can add another checksum for components that use that ConfigMap.

@yu-croco
Copy link
Collaborator

I make PR for this. 🙋

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
argo-cd bug Something isn't working question
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants