Skip to content

Commit

Permalink
Merge pull request #61 from patrickegli/main
Browse files Browse the repository at this point in the history
Feat: Support custom labels
  • Loading branch information
thecampagnards authored Aug 9, 2023
2 parents 5516245 + efdccc1 commit ea25195
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
3 changes: 3 additions & 0 deletions charts/camunda-bpm-platform/ci/custom-values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ initContainers:
annotations:
dummy.annonation/key: value

commonLabels:
dummy.label/key: label-value

extraEnvs:
- name: DB_VALIDATE_ON_BORROW
value: "false"
Expand Down
5 changes: 5 additions & 0 deletions charts/camunda-bpm-platform/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

{{/*
Expand Down
5 changes: 5 additions & 0 deletions charts/camunda-bpm-platform/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ea25195

Please sign in to comment.