---
# Source: ccsm-helm/charts/zeebe/templates/configmap.yaml
kind: ConfigMap
metadata:
  name: ccsm-helm-test-zeebe
  labels:
    app: camunda-cloud-self-managed
    app.kubernetes.io/name: zeebe
    app.kubernetes.io/instance: ccsm-helm-test
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/part-of: camunda-cloud-self-managed
    app.kubernetes.io/version: "1.3.4"
    app.kubernetes.io/component: zeebe-broker
apiVersion: v1
data:
  startup.sh: |
    #!/usr/bin/env bash
    set -eux -o pipefail

    export ZEEBE_BROKER_CLUSTER_NODEID=${ZEEBE_BROKER_CLUSTER_NODEID:-${K8S_NAME##*-}}

    if [ "$(ls -A /exporters/)" ]; then
      mkdir /usr/local/zeebe/exporters/
      cp -a /exporters/*.jar /usr/local/zeebe/exporters/
    else
      echo "No exporters available."
    fi

    env
    exec /usr/local/zeebe/bin/broker

  broker-log4j2.xml: |
    <xml>
    </xml>