Issues with Camunda 8.7 Helm Repository with ArgoCD

While configuration of Camunda Helm Charts using ArgoCD it gives an error. This error stems from the fact that these commands end up with errors

  1. helm dependency build
  2. helm template
  3. helm install

This is the link of the charts we are using.

command -  helm install camunda-platform . -f management-sit.yaml
Error: INSTALLATION FAILED: template: camunda-platform/charts/keycloak/templates/statefulset.yaml:35:40: executing "camunda-platform/charts/keycloak/templates/statefulset.yaml" at <include (print $.Template.BasePath "/configmap-env-vars.yaml") .>: error calling include: template: camunda-platform/charts/keycloak/templates/configmap-env-vars.yaml:54:20: executing "camunda-platform/charts/keycloak/templates/configmap-env-vars.yaml" at <.Values.externalDatabase.existingSecretHostKey>: nil pointer evaluating interface {}.existingSecretHostKey
helm template camunda-platform . -f values.yaml --debug
install.go:222: [debug] Original chart version: ""
install.go:239: [debug] CHART PATH: /home/h76150/projects/processplus-helm


Error: template: camunda-platform/charts/keycloak/templates/statefulset.yaml:35:40: executing "camunda-platform/charts/keycloak/templates/statefulset.yaml" at <include (print $.Template.BasePath "/configmap-env-vars.yaml") .>: error calling include: template: camunda-platform/charts/keycloak/templates/configmap-env-vars.yaml:54:20: executing "camunda-platform/charts/keycloak/templates/configmap-env-vars.yaml" at <.Values.externalDatabase.existingSecretHostKey>: nil pointer evaluating interface {}.existingSecretHostKey
helm.go:84: [debug] template: camunda-platform/charts/keycloak/templates/statefulset.yaml:35:40: executing "camunda-platform/charts/keycloak/templates/statefulset.yaml" at <include (print $.Template.BasePath "/configmap-env-vars.yaml") .>: error calling include: template: camunda-platform/charts/keycloak/templates/configmap-env-vars.yaml:54:20: executing "camunda-platform/charts/keycloak/templates/configmap-env-vars.yaml" at <.Values.externalDatabase.existingSecretHostKey>: nil pointer evaluating interface {}.existingSecretHostKey

Hi there! :waving_hand:

I can see you’re encountering a nil pointer error with the Camunda 8.7 Helm chart when using ArgoCD. This is a known issue that typically occurs when required Keycloak configuration values are missing from your Helm values file.

Root Cause

The error nil pointer evaluating interface {}.existingSecretHostKey happens because the Keycloak templates in the Camunda Helm chart expect certain values to be set, even if you’re not using the internal Keycloak deployment or have disabled certain components.

Solution

You need to ensure that all required Keycloak-related values are present in your values.yaml file. Here are the key configurations you should add:

1. Basic Keycloak Configuration

Even if you disable Keycloak or use an external instance, you must provide these values:

global:
  identity:
    keycloak:
      url:
        protocol: "https"
        host: "keycloak.default.svc.cluster.local"
        port: "8443"
      auth:
        adminUser: admin
        existingSecret: camunda-platform-keycloak
        existingSecretKey: admin-password

2. If Using External Keycloak

If you’re connecting to an existing Keycloak instance, use this configuration:

global:
  identity:
    keycloak:
      url:
        protocol: "https"
        host: "your-external-keycloak-host"
        port: "8443"
      auth:
        adminUser: "admin"
        existingSecret: "your-keycloak-secret"
        existingSecretKey: "admin-password"

identityKeycloak:
  enabled: false

3. ArgoCD Considerations

When using ArgoCD, make sure to:

  • Manage secrets externally (e.g., using External Secrets Operator)
  • Configure ArgoCD to ignore changes to secrets to prevent regeneration
  • Ensure all required values are templated correctly in your ArgoCD Application

References

Try adding the missing Keycloak configuration values to your management-sit.yaml file and run the helm commands again. This should resolve the nil pointer error you’re experiencing.

Let me know if you need help with the specific configuration for your setup! :rocket:

I have tried setting the values or commenting the line out. But does not help