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

OpenShift installation fails with adaptSecurityContext=force & Elasticsearch=disabled #2756

Open
falko opened this issue Jan 13, 2025 · 0 comments
Labels
kind/bug Something isn't working as intended

Comments

@falko
Copy link
Member

falko commented Jan 13, 2025

Using https://github.com/camunda/camunda-deployment-references/blob/main/aws/rosa-hcp/camunda-versions/8.6/procedure/install/helm-values/scc.yml

and disabling ES leads to:

$helm install camunda camunda/camunda-platform -f ssc.yaml -f camunda-values.yaml

Error: INSTALLATION FAILED: template: camunda-platform/templates/zeebe/1/2/3/4/5/6/7/8/z_compatibility_helpers.tpl:87:30: executing "camunda-platform/templates/zeebe/1/2/3/4/5/6/7/8/z_compatibility_helpers.tpl" at <.Values.elasticsearch.commonLabels>: wrong type for value; expected map[string]interface {}; got interface {}

The relevant source seems to lack a condition:

{{- if eq .Values.global.compatibility.openshift.adaptSecurityContext "force" -}}
{{- if not (hasKey .Values.elasticsearch.commonLabels "tuned.openshift.io/elasticsearch") -}}
{{- $_ := set .Values.elasticsearch.commonLabels "tuned.openshift.io/elasticsearch" "" -}}
{{- end -}}
{{- end -}}

Interestingly, the same file says:

A workaround is to set an empty commonLabels as in the default values of the Elasticsearch chart:

elasticsearch:
  enabled: false
  commonLabels: {}
@jessesimpson36 jessesimpson36 added the kind/bug Something isn't working as intended label Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants