Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 18.0.5
version: 18.1.0
appVersion: 7.1.3-0011
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
3 changes: 3 additions & 0 deletions zammad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ helm repo add zammad https://zammad.github.io/zammad-helm
helm upgrade --install zammad zammad/zammad
```

Database migration and seeding run in a separate init job. `--wait` does not wait for jobs, so add
`--wait --wait-for-jobs` if your tooling must not continue until Zammad is initialised.

Once the Zammad pod is ready, it can be accessed using the ingress or port forwarding.
To use port forwarding:

Expand Down
8 changes: 8 additions & 0 deletions zammad/templates/configmap-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,14 @@ data:

if ! (bundle exec rails r 'puts User.any?' 2> /dev/null | grep -q true); then
bundle exec rake db:migrate db:seed
{{- if .Values.zammadConfig.elasticsearch.initialisation }}

# Elasticsearch is contacted directly, not through a configured proxy. Only done on first
# install, so that admins can change the value later.
ELASTICSEARCH_HOST="{{ include "zammad.elasticsearchHost" . }}"
echo "Excluding ${ELASTICSEARCH_HOST} from proxy routing..."
bundle exec rails r "Setting.set('proxy_no', '${ELASTICSEARCH_HOST}')"
Comment thread
fliebe92 marked this conversation as resolved.
Comment thread
fliebe92 marked this conversation as resolved.
{{- end }}
else
echo Executing migrations...
bundle exec rake db:migrate
Expand Down
8 changes: 5 additions & 3 deletions zammad/templates/tests/run-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ metadata:
annotations:
"helm.sh/hook": test
spec:
activeDeadlineSeconds: 30
activeDeadlineSeconds: 600
backoffLimit: 0
template:
metadata:
Expand All @@ -53,8 +53,10 @@ spec:
{{- include "zammad.podSpec.deployment" . | nindent 8 }}
containers:
- name: zammad-run-tests
# Use securityContext etc. from railsserver to have identical setup.
{{- include "zammad.containerSpec" (merge (dict "containerConfig" .Values.zammadConfig.railsserver) .) | nindent 12 }}
# Use securityContext etc. from railsserver to have identical setup, but not its
# probes: this container runs a rake task and never listens on the railsserver port,
# so the startup probe would always fail and kill it after failureThreshold periods.
{{- include "zammad.containerSpec" (merge (dict "containerConfig" (omit .Values.zammadConfig.railsserver "startupProbe" "livenessProbe" "readinessProbe")) .) | nindent 12 }}
command: ['bundle']
args: ['exec', 'rake', 'zammad:helm:test']
env:
Expand Down
Loading