Skip to content

Commit

Permalink
made es reindex optional & updated docker images (#60)
Browse files Browse the repository at this point in the history
* update docker images to 3.3.0-19

Signed-off-by: André Bauer <[email protected]>

* removed chart type to ghet lint with helm 3 work

* use matrix for kubeval

* added ct timeout unit

* fixed dependency repos

* diasbled helm repo add

* remove helm repo add

* use checkout v2

* debug checkout

* debug checkout

* debug checkout

* remove chart changes detection

* fix ci dir

* debug kubeval

* debug kubeval

* debug kubeval

* debug kubeval

* updated docker image & made es reindex optional

* fixed readem

Signed-off-by: André Bauer <[email protected]>
  • Loading branch information
monotek authored Sep 25, 2020
1 parent 19e71af commit 4c0b3c1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion zammad/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v1
name: zammad
version: 2.5.0
version: 2.6.0
appVersion: 3.5.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
Expand Down
5 changes: 3 additions & 2 deletions zammad/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ The following table lists the configurable parameters of the zammad chart and th
| Parameter | Description | Default |
| -------------------------------------------------- | ------------------------------------------------ | ------------------------------- |
| `image.repository` | Container image to use | `zammad/zammad-docker-compose` |
| `image.tag` | Container image tag to deploy | `3.4.0-18` |
| `image.tag` | Container image tag to deploy | `3.5.0-2` |
| `image.pullPolicy` | Container pull policy | `IfNotPresent` |
| `image.imagePullSecrets` | An array of imagePullSecrets | `[]` |
| `service.type` | Service type | `ClusterIP` |
Expand All @@ -45,6 +45,7 @@ The following table lists the configurable parameters of the zammad chart and th
| `envConfig.elasticsearch.port` | Elasticsearch port | `9200` |
| `envConfig.elasticsearch.user` | Elasticsearch user | `""` |
| `envConfig.elasticsearch.pass` | Elasticsearch pass | `""` |
| `envConfig.elasticsearch.reindex` | Elasticsearch reindex is run on start | `true` |
| `envConfig.memcached.host` | Memcached host | `zammad-memcached` |
| `envConfig.memcached.port` | Memcached port | `11211` |
| `envConfig.postgresql.host` | PostgreSql host | `zammad-postgresql` |
Expand Down Expand Up @@ -76,7 +77,7 @@ The following table lists the configurable parameters of the zammad chart and th
| `affinity` | Affinity | `{}` |
| `elasticsearch.enabled` | Use Elasticsearch dependency | `true` |
| `elasticsearch.image` | Elasticsearch docker image | `zammad/zammad-docker-compose` |
| `elasticsearch.imageTag` | Elasticsearch docker image tag | `zammad-elasticsearch-3.4.0-18` |
| `elasticsearch.imageTag` | Elasticsearch docker image tag | `zammad-elasticsearch-3.5.0-2` |
| `elasticsearch.clusterName` | Elasticsearch cluster name | `zammad` |
| `elasticsearch.replicas` | Elasticsearch replicas | `1` |
| `elasticsearch.clusterHealthCheckParams` | Workaround to get ES test work in GitHubCI | `"timeout=1s"` |
Expand Down
2 changes: 2 additions & 0 deletions zammad/templates/configmap-init.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ data:
bundle exec rails r 'Setting.set("es_user", "{{ .Values.envConfig.elasticsearch.user }}")'
bundle exec rails r 'Setting.set("es_password", "{{ .Values.envConfig.elasticsearch.pass }}")'
{{ end }}
{{- if and .Values.envConfig.elasticsearch.reindex }}
bundle exec rake searchindex:rebuild
{{ end }}
echo "elasticsearch init complete :)"
postgresql-init: |-
#!/bin/bash
Expand Down
2 changes: 1 addition & 1 deletion zammad/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ spec:
- name: {{ template "zammad.fullname" . }}-init
mountPath: /docker-entrypoint.sh
readOnly: true
subPath: postgresql-init
subPath: postgresql-init
- name: elasticsearch-init
image: {{ .Values.image.repository }}:{{if eq .Values.image.repository "zammad/zammad-docker-compose"}}zammad-{{ end }}{{ .Values.image.tag }}
imagePullPolicy: {{ .Values.image.pullPolicy }}
Expand Down
5 changes: 3 additions & 2 deletions zammad/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
image:
repository: zammad/zammad-docker-compose
tag: 3.5.0
tag: 3.5.0-2
pullPolicy: IfNotPresent
imagePullSecrets: []
# - name: "image-pull-secret"
Expand Down Expand Up @@ -32,6 +32,7 @@ envConfig:
port: 9200
user: ""
pass: ""
reindex: true
memcached:
# host env var is only used when memcached.enabled is false
host: zammad-memcached
Expand Down Expand Up @@ -159,7 +160,7 @@ affinity: {}
elasticsearch:
enabled: true
image: "zammad/zammad-docker-compose"
imageTag: "zammad-elasticsearch-3.5.0"
imageTag: "zammad-elasticsearch-3.5.0-2"
clusterName: zammad
replicas: 1
# Workaround to get helm test to work in GitHub action CI
Expand Down

0 comments on commit 4c0b3c1

Please sign in to comment.