Skip to content

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

@falko

Description

@falko

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:
https://github.com/camunda/camunda-platform-helm/blob/1190fff77d06b8dcf1160a80e56ad92b738c0be8/charts/camunda-platform-8.6/templates/zeebe/1/2/3/4/5/6/7/8/z_compatibility_helpers.tpl#L86-L90

Interestingly, the same file says:
https://github.com/camunda/camunda-platform-helm/blob/1190fff77d06b8dcf1160a80e56ad92b738c0be8/charts/camunda-platform-8.6/templates/zeebe/1/2/3/4/5/6/7/8/z_compatibility_helpers.tpl#L2

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

elasticsearch:
  enabled: false
  commonLabels: {}

Metadata

Metadata

Assignees

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