Skip to content

Commit 4b3cf91

Browse files
committed
github: Add chart lint and test action.
1 parent 90ff1b2 commit 4b3cf91

File tree

5 files changed

+103
-1
lines changed

5 files changed

+103
-1
lines changed

.github/workflows/helm-test.yaml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
---
2+
name: Helm lint and test
3+
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
lint-test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v5
15+
with:
16+
fetch-depth: 0
17+
18+
- name: Set up Helm
19+
uses: azure/setup-helm@v4.2.0
20+
with:
21+
version: v3.17.0
22+
23+
- uses: actions/setup-python@v5.3.0
24+
with:
25+
python-version: "3.x"
26+
check-latest: true
27+
28+
- name: Run helm-docs
29+
uses: losisin/helm-docs-github-action@v1
30+
with:
31+
fail-on-diff: true
32+
33+
- name: Set up chart-testing
34+
uses: helm/chart-testing-action@v2.7.0
35+
with:
36+
version: 3.14.0
37+
yamllint_version: 1.37.1
38+
yamale_version: 6.0.0
39+
40+
- name: Set up helm repos
41+
run: |
42+
helm repo add groundhog2k https://groundhog2k.github.io/helm-charts/
43+
44+
- name: Run chart-testing (list-changed)
45+
id: list-changed
46+
run: |
47+
changed=$(ct list-changed --chart-dirs kubernetes/chart --target-branch ${{ github.event.repository.default_branch }})
48+
if [[ -n "$changed" ]]; then
49+
echo "changed=true" >> "$GITHUB_OUTPUT"
50+
fi
51+
52+
- name: Run chart-testing (lint)
53+
if: steps.list-changed.outputs.changed == 'true'
54+
run: ct lint --chart-dirs kubernetes/chart --target-branch ${{ github.event.repository.default_branch }} --lint-conf lintconf.yaml --github-groups
55+
56+
- name: Create kind cluster
57+
if: steps.list-changed.outputs.changed == 'true'
58+
uses: helm/kind-action@v1
59+
60+
- name: Run chart-testing (install)
61+
id: chart-testing-install
62+
if: steps.list-changed.outputs.changed == 'true'
63+
run: ct install --chart-dirs kubernetes/chart --target-branch ${{ github.event.repository.default_branch }} --github-groups --skip-clean-up
64+
65+
- name: Fetch logs
66+
if: always()
67+
run: |
68+
namespace=$(helm list --all-namespaces --output json \
69+
| jq -r '[.[] | select(.namespace | startswith("zulip-"))][0].namespace')
70+
pod=$(kubectl get pods -n "$namespace" -l app.kubernetes.io/name=zulip --output name)
71+
kubectl -n "$namespace" exec -it "$pod" -c zulip -- cat /var/log/zulip/errors.log

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ services:
6363
- "80:80"
6464
- "443:443"
6565
environment:
66+
MANUAL_CONFIGURATION: True
6667
## See https://github.com/zulip/docker-zulip#configuration for
6768
## details on this section and how to discover the many
6869
## additional settings that are supported here.

kubernetes/chart/zulip/Chart.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ dependencies:
1212
repository: https://groundhog2k.github.io/helm-charts/
1313
version: 1.5.11
1414
digest: sha256:c7d4845a79011fbbf12fee4e5e51c3c0762446f229c08e499f792a52bc185b16
15-
generated: "2025-11-06T00:13:51.539064-05:00"
15+
generated: "2025-11-06T14:56:51.248272-05:00"
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
zulip:
3+
password: set-secure-zulip-password
4+
environment:
5+
SETTING_ZULIP_ADMINISTRATOR: "admin@example.net"
6+
SETTING_EXTERNAL_HOST: zulip.example.net
7+
ZULIP_AUTH_BACKENDS: "EmailAuthBackend"
8+
9+
memcached:
10+
memcachedPassword: set-secure-memcached-password
11+
12+
rabbitmq:
13+
authentication:
14+
password:
15+
value: thing
16+
erlangCookie:
17+
value: moose
18+
19+
redis:
20+
password: set-secure-redis-password
21+
22+
postgresql:
23+
settings:
24+
superuserPassword:
25+
value: set-secure-postgresql-postgres-password
26+
userDatabase:
27+
password:
28+
value: set-secure-postgresql-zulip-password

kubernetes/chart/zulip/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,8 @@ postgresql:
227227
rabbitmq:
228228
# Persistence is disabled by setting neither
229229
# `storage.persistentVolumeClaimName` nor `storage.requestedSize`.
230+
image:
231+
tag: 4.2.0
230232
authentication:
231233
user:
232234
value: zulip

0 commit comments

Comments
 (0)