Skip to content
2 changes: 1 addition & 1 deletion zammad/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: zammad
version: 15.2.5
version: 15.3.0
appVersion: 6.5.2-22
description: Zammad is a web based open source helpdesk/customer support system with many features to manage customer communication via several channels like telephone, facebook, twitter, chat and e-mails.
home: https://zammad.org
Expand Down
9 changes: 9 additions & 0 deletions zammad/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,15 @@ initContainers:
{{ include "zammad.podSpec.initContainers" . | nindent 2 }}
{{- end -}}

{{/*
priority class configuration for Zammad pods
*/}}
{{- define "zammad.podSpec.priorityClass" -}}
{{- if .priorityClassName }}
priorityClassName: {{ .priorityClassName }}
{{- end}}
{{- end -}}

{{/*
shared configuration for Zammad containers
*/}}
Expand Down
1 change: 1 addition & 0 deletions zammad/templates/cronjob-reindex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ spec:
{{- toYaml . | nindent 12}}
{{- end }}
spec:
{{- include "zammad.podSpec.priorityClass" .Values.zammadConfig.cronJob | nindent 10 }}
{{- include "zammad.podSpec" . | nindent 10 }}
{{- with .Values.zammadConfig.cronJob.reindex.podSpec }}
{{- toYaml . | nindent 10}}
Expand Down
1 change: 1 addition & 0 deletions zammad/templates/deployment-nginx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ spec:
{{- toYaml . | nindent 8}}
{{- end }}
spec:
{{- include "zammad.podSpec.priorityClass" .Values.zammadConfig.nginx | nindent 6 }}
{{- include "zammad.podSpec.deployment" . | nindent 6 }}
{{- with .Values.zammadConfig.nginx.nodeSelector }}
nodeSelector:
Expand Down
1 change: 1 addition & 0 deletions zammad/templates/deployment-railsserver.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ spec:
{{- toYaml . | nindent 8}}
{{- end }}
spec:
{{- include "zammad.podSpec.priorityClass" .Values.zammadConfig.railsserver | nindent 6 }}
{{- include "zammad.podSpec.deployment" . | nindent 6 }}
{{- with .Values.zammadConfig.railsserver.nodeSelector }}
nodeSelector:
Expand Down
1 change: 1 addition & 0 deletions zammad/templates/deployment-scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ spec:
{{- toYaml . | nindent 8}}
{{- end }}
spec:
{{- include "zammad.podSpec.priorityClass" .Values.zammadConfig.scheduler | nindent 6 }}
{{- include "zammad.podSpec.deployment" . | nindent 6 }}
{{- with .Values.zammadConfig.scheduler.nodeSelector }}
nodeSelector:
Expand Down
1 change: 1 addition & 0 deletions zammad/templates/deployment-websocket.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ spec:
{{- toYaml . | nindent 8}}
{{- end }}
spec:
{{- include "zammad.podSpec.priorityClass" .Values.zammadConfig.websocket | nindent 6 }}
{{- include "zammad.podSpec.deployment" . | nindent 6 }}
{{- with .Values.zammadConfig.websocket.topologySpreadConstraints }}
topologySpreadConstraints:
Expand Down
1 change: 1 addition & 0 deletions zammad/templates/job-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ spec:
{{- toYaml . | nindent 8}}
{{- end }}
spec:
{{- include "zammad.podSpec.priorityClass" .Values.zammadConfig.initJob | nindent 6 }}
{{- include "zammad.podSpec" . | nindent 6 }}
{{- with .Values.zammadConfig.initJob.podSpec }}
{{- toYaml . | nindent 6}}
Expand Down
7 changes: 7 additions & 0 deletions zammad/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@ zammadConfig:
# labelSelector:
# matchLabels:
# app.kubernetes.io/name: zammad
priorityClassName: ""

postgresql:
# enable/disable postgresql chart dependency
Expand Down Expand Up @@ -257,6 +258,7 @@ zammadConfig:
# labelSelector:
# matchLabels:
# app.kubernetes.io/name: zammad
priorityClassName: ""

redis:
# enable/disable redis chart dependency
Expand Down Expand Up @@ -310,6 +312,7 @@ zammadConfig:
# labelSelector:
# matchLabels:
# app.kubernetes.io/name: zammad
priorityClassName: ""

storageVolume:
# Enable this for 'File' based storage in Zammad. You must provide an externally managed 'extistingClaim'
Expand Down Expand Up @@ -400,6 +403,7 @@ zammadConfig:
# labelSelector:
# matchLabels:
# app.kubernetes.io/name: zammad
priorityClassName: ""

initContainers:
elasticsearch:
Expand Down Expand Up @@ -513,8 +517,11 @@ zammadConfig:
# labelSelector:
# matchLabels:
# app.kubernetes.io/name: zammad

priorityClassName: ""

cronJob:
priorityClassName: ""
reindex:
# By default, this cronjob never runs. It can be used to create maintenance jobs with
# kubectl create job my-reindex-job --from=cronjob/zammad-cronjob-reindex
Expand Down