Skip to content

Commit

Permalink
feat: Add additionalLabels to Jobs (#190)
Browse files Browse the repository at this point in the history
Co-authored-by: Stefan Benz <[email protected]>
  • Loading branch information
bjw-s and stebenz authored Mar 27, 2024
1 parent b402ec4 commit 9050cac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/zitadel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: zitadel
description: A Helm chart for ZITADEL
type: application
appVersion: "v2.46.0"
version: 7.10.0
version: 7.11.0
kubeVersion: ">= 1.21.0-0"
icon: https://zitadel.com/zitadel-logo-dark.svg
maintainers:
Expand Down
3 changes: 3 additions & 0 deletions charts/zitadel/templates/initjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ spec:
labels:
{{- include "zitadel.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: init
{{- with .Values.initJob.podAdditionalLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.initJob.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
Expand Down
3 changes: 3 additions & 0 deletions charts/zitadel/templates/setupjob.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ spec:
labels:
{{- include "zitadel.selectorLabels" . | nindent 8 }}
app.kubernetes.io/component: setup
{{- with .Values.setupJob.podAdditionalLabels }}
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.setupJob.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
Expand Down
2 changes: 2 additions & 0 deletions charts/zitadel/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ initJob:
activeDeadlineSeconds: 300
extraContainers: []
podAnnotations: {}
podAdditionalLabels: {}
# Available init commands :
# "": initialize ZITADEL instance (without skip anything)
# database: initialize only the database
Expand All @@ -188,6 +189,7 @@ setupJob:
activeDeadlineSeconds: 300
extraContainers: []
podAnnotations: {}
podAdditionalLabels: {}
additionalArgs:
- "--init-projections=true"
machinekeyWriter:
Expand Down

0 comments on commit 9050cac

Please sign in to comment.