diff --git a/charts/camunda-bpm-platform/ci/custom-values.yaml b/charts/camunda-bpm-platform/ci/custom-values.yaml index 1f31051..792ab23 100644 --- a/charts/camunda-bpm-platform/ci/custom-values.yaml +++ b/charts/camunda-bpm-platform/ci/custom-values.yaml @@ -16,6 +16,9 @@ initContainers: annotations: dummy.annonation/key: value +commonLabels: + dummy.label/key: label-value + extraEnvs: - name: DB_VALIDATE_ON_BORROW value: "false" diff --git a/charts/camunda-bpm-platform/templates/_helpers.tpl b/charts/camunda-bpm-platform/templates/_helpers.tpl index f3e38aa..7e202c1 100644 --- a/charts/camunda-bpm-platform/templates/_helpers.tpl +++ b/charts/camunda-bpm-platform/templates/_helpers.tpl @@ -40,6 +40,11 @@ helm.sh/chart: {{ include "camunda-bpm-platform.chart" . }} app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} {{- end }} app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- if .Values.commonLabels }} +{{- range $key, $val := .Values.commonLabels }} +{{ $key }}: {{ $val | quote }} +{{- end }} +{{- end }} {{- end }} {{/* diff --git a/charts/camunda-bpm-platform/values.yaml b/charts/camunda-bpm-platform/values.yaml index 028f44b..700da7f 100644 --- a/charts/camunda-bpm-platform/values.yaml +++ b/charts/camunda-bpm-platform/values.yaml @@ -14,6 +14,11 @@ initContainers: [] # Deployment annotations annotations: {} +# Custom labels to add to all deployed objects +commonLabels: {} +# Example +# my-custom-annotation: my-value + image: repository: camunda/camunda-bpm-platform tag: latest