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

[ISSUE] Connectors envFrom is empty when identity.auth is disabled (minimalist setup) #2761

Open
p4tr0ckz opened this issue Jan 14, 2025 · 1 comment
Labels
kind/issue Unidentified issue, it could be a bug, misconfig, or anything in between platform/gcp Issues related to GCP

Comments

@p4tr0ckz
Copy link

Describe the issue:

Using this local setup values to test the latest helm chart version, deployment fails.

Expected behavior:

envFrom should be within the if within the template

How to reproduce:

Use latest Helm Chart Version and try deploying with minimalist values.

Logs:

Error: UPGRADE FAILED: cannot patch "camunda-connectors" with kind Deployment: Deployment.apps "camunda-connectors" is invalid: spec.template.spec.containers[0].env[1].valueFrom: Invalid value: "": may not be specified when valueis not empty
Environment:

  • Platform: GCP
  • Helm CLI version: 3.16.4
  • Chart version: 8.6.0
  • Values file: minimalist

I know this is one of those edge cases for people who dont want to use identity, but since youre providing a minimalistic testing setup, i just wanted to let you know :)

@p4tr0ckz p4tr0ckz added the kind/issue Unidentified issue, it could be a bug, misconfig, or anything in between label Jan 14, 2025
@github-actions github-actions bot added the platform/gcp Issues related to GCP label Jan 14, 2025
@p4tr0ckz
Copy link
Author

I tried opening a PR for this but couldnt, so here is a suggestion for

camunda-platform-helm/charts/camunda-platform-8.6/templates/connectors/deployment.yaml
Line 95-102

          {{- if or .Values.global.identity.auth.enabled .Values.connectors.envFrom }}
          envFrom:
          {{- end }}
          {{- if .Values.global.identity.auth.enabled }}
            - configMapRef:
                name: {{ include "camundaPlatform.fullname" . }}-identity-env-vars
          {{- end }}
          {{- if .Values.connectors.envFrom -}}
            {{ .Values.connectors.envFrom | toYaml | nindent 12 }}
          {{- end }}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/issue Unidentified issue, it could be a bug, misconfig, or anything in between platform/gcp Issues related to GCP
Projects
None yet
Development

No branches or pull requests

1 participant