Skip to content

Commit

Permalink
Switch to Zammad 6.3 (#260)
Browse files Browse the repository at this point in the history
* Improve handling of autowizard secret by mounting it in the FS directly.
* Remove var folder. Add connection pool size parameter.
* Make it a major version and add upgrading instructions.
  • Loading branch information
mgruner authored Apr 17, 2024
1 parent e82062b commit a5eaa8e
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 43 deletions.
6 changes: 3 additions & 3 deletions zammad/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: zammad
version: 10.3.4
appVersion: 6.2.0-1
version: 11.0.0
appVersion: 6.3.0
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
icon: https://raw.githubusercontent.com/zammad/zammad-documentation/main/images/zammad_logo_600x520.png
Expand All @@ -11,7 +11,7 @@ sources:
maintainers:
- name: monotek
email: [email protected]
- name: martini
- name: mgruner
email: [email protected]
dependencies:
- name: elasticsearch
Expand Down
12 changes: 12 additions & 0 deletions zammad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,18 @@ Now you can open <http://localhost:8080> in your browser.

## Upgrading

### From Chart Version 10.x to 11.0.0

- Minimum Zammad version is now 6.3.0, where there is no `var/` folder any more, and the related
mount points have been removed.
- The handling of the Autowizard secret was simplified. It is no longer processed by an init container,
but instead mounted directly into the Zammad container. Therefore the secret must contain the actual
raw JSON value, and not the base64 encoded JSON. So if you use an existing Autowizard secret,
you will need to change it to contain the raw value now.
- There is a new `.Values.zammadConfig.postgresql.options` setting that can be used to specify additional
settings for the database connection. By default it specifies Zammad's default Rails DB pool size of 50.
For large installations you may need to increase this value.

### From Chart Version 9.x to 10.0.0

- all containers uses `readOnlyRootFilesystem: true` again
Expand Down
2 changes: 1 addition & 1 deletion zammad/ci/full-secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ type: Opaque
---
apiVersion: v1
data:
autowizard: ZXdvZ0lDS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AgICJuYW1lIjogInNvbWUgZ3JvdXAxIiwKICAgICAgInVzZXJzIjogWyJhZG1pbkBleGFtcGxlLmNvbSIsICJhZ2VudDFAZXhhbXBsZS5jb20iXQogICAgfSwKICAgIHsKICAgICAgIm5hbWUiOiAiVXNlcnMiLAogICAgICAidXNlcnMiOiBbImFkbWluQGV4YW1wbGUuY29tIiwgImFnZW50MUBleGFtcGxlLmNvbSJdLAogICAgICAic2lnbmF0dXJlIjogImRlZmF1bHQiLAogICAgICAiZW1haWxfYWRkcmVzc19pZCI6IDEKICAgIH0KICBdLAogICJDaGFubmVscyI6IFsKICAgIHsKICAgICAgImlkIjogMSwKICAgICAgImFyZWEiOiAiRW1haWw6OkFjY291bnQiLAogICAgICAiZ3JvdXAiOiAiVXNlcnMiLAogICAgICAib3B0aW9ucyI6IHsKICAgICAgICAiaW5ib3VuZCI6IHsKICAgICAgICAgICJhZGFwdGVyIjogImltYXAiLAogICAgICAgICAgIm9wdGlvbnMiOiB7CiAgICAgICAgICAgICJob3N0IjogIm14MS5leGFtcGxlLmNvbSIsCiAgICAgICAgICAgICJ1c2VyIjogIm5vdF9leGlzdGluZyIsCiAgICAgICAgICAgICJwYXNzd29yZCI6ICJub3RfZXhpc3RpbmciLAogICAgICAgICAgICAic3NsIjogInNzbCIKICAgICAgICAgIH0KICAgICAgICB9LAogICAgICAgICJvdXRib3VuZCI6IHsKICAgICAgICAgICJhZGFwdGVyIjogInNlbmRtYWlsIgogICAgICAgIH0KICAgICAgfQogICAgfQogIF0sCiAgIkVtYWlsQWRkcmVzc2VzIjogWwogICAgewogICAgICAiaWQiOiAxLAogICAgICAiY2hhbm5lbF9pZCI6IDEsCiAgICAgICJuYW1lIjogIlphbW1hZCBIZWxwZGVzayIsCiAgICAgICJlbWFpbCI6ICJ6YW1tYWRAbG9jYWxob3N0IgogICAgfQogIF0sCiAgIlNldHRpbmdzIjogWwogICAgewogICAgICAibmFtZSI6ICJwcm9kdWN0X25hbWUiLAogICAgICAidmFsdWUiOiAiWmFtbWFkIFRlc3QgU3lzdGVtIgogICAgfSwKICAgIHsKICAgICAgIm5hbWUiOiAiZGV2ZWxvcGVyX21vZGUiLAogICAgICAidmFsdWUiOiB0cnVlCiAgICB9CiAgXSwKICAiVGV4dE1vZHVsZUxvY2FsZSI6IHsKICAgICJMb2NhbGUiOiAiZGUtZGUiCiAgfQp9Cg==
kind: Secret
metadata:
name: autowizard
Expand Down
9 changes: 3 additions & 6 deletions zammad/templates/configmap-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,9 @@ data:
zammad-init: |-
#!/bin/bash
set -e
if [ -n "${AUTOWIZARD_JSON}" ]; then
echo "${AUTOWIZARD_JSON}" | base64 -d > /opt/zammad/var/auto_wizard.json
fi
{{- with .Values.zammadConfig.initContainers.zammad.customInit }}
{{- . | nindent 4 }}
{{- end }}
{{- with .Values.zammadConfig.initContainers.zammad.customInit }}
{{- . | nindent 4 }}
{{- end }}
echo "zammad init complete :)"
{{ if .Values.zammadConfig.elasticsearch.initialisation }}
elasticsearch-init: |-
Expand Down
2 changes: 1 addition & 1 deletion zammad/templates/secrets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
{{- include "zammad.labels" . | nindent 4 }}
type: Opaque
data:
{{ .Values.secrets.autowizard.secretKey }}: {{ .Values.autoWizard.config | b64enc | b64enc | quote }}
{{ .Values.secrets.autowizard.secretKey }}: {{ .Values.autoWizard.config | b64enc | quote }}
{{ end }}
{{ if and .Values.zammadConfig.elasticsearch.pass (not .Values.secrets.elasticsearch.useExisting) }}
---
Expand Down
52 changes: 21 additions & 31 deletions zammad/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ spec:
- /bin/sh
- -cx
- |
chown {{ .Values.securityContext.runAsUser }}:{{ .Values.securityContext.runAsGroup }} -R /opt/zammad/var
chmod 770 /opt/zammad/tmp
{{- with .Values.zammadConfig.initContainers.volumePermissions.resources }}
resources:
Expand All @@ -63,8 +62,6 @@ spec:
volumeMounts:
- name: {{ template "zammad.fullname" . }}-tmp
mountPath: /opt/zammad/tmp
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/var
{{- end }}
- name: postgresql-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand All @@ -87,7 +84,7 @@ spec:
name: {{ template "zammad.postgresqlSecretName" . }}
key: {{ .Values.secrets.postgresql.secretKey }}
- name: DATABASE_URL
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}"
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}?{{ .Values.zammadConfig.postgresql.options }}"
{{ include "zammad.env.S3_URL" . | nindent 12 }}
{{- if .Values.extraEnv }}
{{- toYaml .Values.extraEnv | nindent 12 }}
Expand All @@ -109,8 +106,7 @@ spec:
mountPath: /opt/zammad/tmp
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/storage
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/var
{{- if .Values.zammadConfig.initContainers.zammad.customInit }}
- name: zammad-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand All @@ -132,15 +128,8 @@ spec:
name: {{ template "zammad.postgresqlSecretName" . }}
key: {{ .Values.secrets.postgresql.secretKey }}
- name: DATABASE_URL
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}"
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}?{{ .Values.zammadConfig.postgresql.options }}"
{{ include "zammad.env.S3_URL" . | nindent 12 }}
{{- if .Values.autoWizard.enabled }}
- name: AUTOWIZARD_JSON
valueFrom:
secretKeyRef:
name: {{ template "zammad.autowizardSecretName" . }}
key: {{ .Values.secrets.autowizard.secretKey }}
{{- end }}
{{- if .Values.extraEnv }}
{{- toYaml .Values.extraEnv | nindent 12 }}
{{- end }}
Expand All @@ -161,8 +150,7 @@ spec:
mountPath: /opt/zammad/tmp
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/storage
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/var
{{- end }}
{{- if .Values.zammadConfig.elasticsearch.initialisation }}
- name: elasticsearch-init
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
Expand All @@ -185,7 +173,7 @@ spec:
name: {{ template "zammad.postgresqlSecretName" . }}
key: {{ .Values.secrets.postgresql.secretKey }}
- name: DATABASE_URL
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}"
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}?{{ .Values.zammadConfig.postgresql.options }}"
{{ include "zammad.env.S3_URL" . | nindent 12 }}
{{- if or .Values.zammadConfig.elasticsearch.pass .Values.secrets.elasticsearch.useExisting }}
- name: ELASTICSEARCH_PASSWORD
Expand Down Expand Up @@ -214,8 +202,6 @@ spec:
mountPath: /opt/zammad/tmp
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/storage
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/var
{{- end }}
containers:
{{- with .Values.sidecars }}
Expand Down Expand Up @@ -266,8 +252,6 @@ spec:
mountPath: /var/log/nginx
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/storage
- name: {{ include "zammad.fullname" . }}-var
mountPath: /opt/zammad/var
- name: {{ .Chart.Name }}-railsserver
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand All @@ -286,7 +270,7 @@ spec:
value: {{ .Values.zammadConfig.railsserver.tmpdir }}
{{- if .Values.autoWizard.enabled }}
- name: AUTOWIZARD_RELATIVE_PATH
value: var/auto_wizard.json
value: tmp/auto_wizard/auto_wizard.json
{{- end }}
{{- if or .Values.zammadConfig.redis.pass .Values.secrets.redis.useExisting }}
- name: REDIS_PASSWORD
Expand All @@ -307,7 +291,7 @@ spec:
name: {{ template "zammad.postgresqlSecretName" . }}
key: {{ .Values.secrets.postgresql.secretKey }}
- name: DATABASE_URL
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}"
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}?{{ .Values.zammadConfig.postgresql.options }}"
{{ include "zammad.env.S3_URL" . | nindent 12 }}
{{- if .Values.extraEnv }}
{{- toYaml .Values.extraEnv | nindent 12 }}
Expand Down Expand Up @@ -338,8 +322,10 @@ spec:
mountPath: /opt/zammad/tmp
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/storage
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/var
{{- if .Values.autoWizard.enabled }}
- name: autowizard
mountPath: "/opt/zammad/tmp/auto_wizard"
{{- end }}
- name: {{ .Chart.Name }}-scheduler
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand All @@ -366,7 +352,7 @@ spec:
name: {{ template "zammad.postgresqlSecretName" . }}
key: {{ .Values.secrets.postgresql.secretKey }}
- name: DATABASE_URL
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}"
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}?{{ .Values.zammadConfig.postgresql.options }}"
{{ include "zammad.env.S3_URL" . | nindent 12 }}
{{- if .Values.extraEnv }}
{{- toYaml .Values.extraEnv | nindent 12 }}
Expand All @@ -386,8 +372,6 @@ spec:
mountPath: /opt/zammad/tmp
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/storage
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/var
- name: {{ .Chart.Name }}-websocket
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down Expand Up @@ -418,7 +402,7 @@ spec:
name: {{ template "zammad.postgresqlSecretName" . }}
key: {{ .Values.secrets.postgresql.secretKey }}
- name: DATABASE_URL
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}"
value: "postgres://{{ .Values.zammadConfig.postgresql.user }}:$(POSTGRESQL_PASS)@{{ if .Values.zammadConfig.postgresql.enabled }}{{ .Release.Name }}-postgresql{{ else }}{{ .Values.zammadConfig.postgresql.host }}{{ end }}:{{ .Values.zammadConfig.postgresql.port }}/{{ .Values.zammadConfig.postgresql.db }}?{{ .Values.zammadConfig.postgresql.options }}"
{{ include "zammad.env.S3_URL" . | nindent 12 }}
{{- if .Values.extraEnv }}
{{- toYaml .Values.extraEnv | nindent 12 }}
Expand Down Expand Up @@ -449,13 +433,19 @@ spec:
mountPath: /opt/zammad/tmp
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/storage
- name: {{ template "zammad.fullname" . }}-var
mountPath: /opt/zammad/var
{{- with .Values.securityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
volumes:
{{- if .Values.autoWizard.enabled }}
- name: autowizard
secret:
secretName: {{ template "zammad.autowizardSecretName" . }}
items:
- key: {{ .Values.secrets.autowizard.secretKey }}
path: auto_wizard.json
{{- end }}
- name: {{ template "zammad.fullname" . }}-init
configMap:
name: {{ template "zammad.fullname" . }}-init
Expand Down
4 changes: 3 additions & 1 deletion zammad/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,8 @@ zammadConfig:
port: 5432
# needs to be the same as the postgresql.auth.username
user: zammad
# additional connection options
options: "pool=50"

railsserver:
livenessProbe:
Expand Down Expand Up @@ -318,7 +320,7 @@ extraEnv: []
# value: "foobar"

# autowizard config
# if a token is used the url hast to look like: http://zammad/#getting_started/auto_wizard/your_token_here
# if a token is used the url must look like: http://zammad/#getting_started/auto_wizard/your_token_here
autoWizard:
enabled: false
# string with the autowizard config as json
Expand Down

0 comments on commit a5eaa8e

Please sign in to comment.