Skip to content

Keycloak Health check is not working #22897

@megatr0n28

Description

@megatr0n28

Checklist:

  • [X ] I've searched in the docs and FAQ for my answer: https://bit.ly/argocd-faq.
  • [X ] I've included steps to reproduce the bug.
  • [X ] I've pasted the output of argocd version.

Describe the bug

After upgrading from v2.13.1 -> v2.14.5, I am getting a ComparisonError: error setting app health: failed to get resource health for "Keycloak" with name "keycloak-23" in namespace "keycloak": :11: attempt to compare string with nil stack traceback: :11: in function <:10> [G]: in function 'sort' :10: in main chunk [G]:
Is there a workaround for https://github.com/argoproj/argo-cd/blob/v2.14.5/resource_customizations/k8s.keycloak.org/Keycloak/health.lua

To Reproduce

  • Deploy Keycloak 23.0.7 using ArgoCD v2.14.5
  • Keycloak application health is Unknown

Expected behavior

Keycloak application health is Healthy

Screenshots

Image
Image

Version

argocd: v2.14.5+f463a94
  BuildDate: 2025-03-11T03:15:56Z
  GitCommit: f463a945d57267e9691cede37021d9ddc5994f36
  GitTreeState: clean
  GoVersion: go1.23.3
  Compiler: gc
  Platform: linux/amd64

Logs

time="2025-05-07T14:45:15Z" level=warning msg="failed to get resource health for \"Keycloak\" with name \"keycloak-23\" in namespace \"keycloak\": <string>:11: attempt to compare string with nil\nstack traceback:\n\t<string>:11: in function <<string>:10>\n\t[G]: in function 'sort'\n\t<string>:10: in main chunk\n\t[G]: ?" application=argocd/keycloak-operator
time="2025-05-07T14:45:15Z" level=info msg="Updated health status: Progressing -> Unknown" application=keycloak-operator dest-namespace=keycloak dest-server="https://kubernetes.default.svc" reason=ResourceUpdated type=Normal

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions