Skip to content

Commit 7c15115

Browse files
authored
update Bitnami Postgres subchart (#102)
* add nix setup * update postgres chart * specify postgres image * add chart readme with warning * bump core version * add chart validation workflow * don't pin helm versions * update component names
1 parent 53e592c commit 7c15115

File tree

11 files changed

+168
-10
lines changed

11 files changed

+168
-10
lines changed

.github/workflows/lint_charts.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Lint Helm Charts
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'charts/**'
7+
8+
push:
9+
branches:
10+
- main
11+
12+
jobs:
13+
release:
14+
runs-on: [self-hosted, Linux, X64]
15+
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
22+
- name: Install Helm
23+
uses: azure/setup-helm@v4
24+
25+
- name: Lint Helm charts
26+
run: |
27+
for chart in charts/*/; do
28+
if [ -f "$chart/Chart.yaml" ]; then
29+
echo "Validating $chart"
30+
helm lint "$chart"
31+
helm template "$chart" --debug
32+
fi
33+
done
34+
35+
- name: Setup kubeconform
36+
uses: alexellis/arkade-get@master
37+
with:
38+
kubeconform: latest
39+
40+
- name: Validate Kubernetes manifests
41+
run: |
42+
for chart in charts/*/; do
43+
if [ -f "$chart/Chart.yaml" ]; then
44+
echo "Validating Kubernetes manifests for $chart"
45+
helm template "$chart" | kubeconform -strict -ignore-missing-schemas
46+
fi
47+
done

.github/workflows/release.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Checkout
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
fetch-depth: 0
1717

@@ -21,9 +21,7 @@ jobs:
2121
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
2222
2323
- name: Install Helm
24-
uses: azure/setup-helm@v3
25-
with:
26-
version: v3.14.0
24+
uses: azure/setup-helm@v4
2725

2826
# https://github.com/helm/chart-releaser-action/issues/74
2927
- name: Add repositories

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,5 @@ terraform/**/terraform.tfstate
55
terraform/**/terraform.tfstate.backup
66
terraform/**/.*
77
terraform/**/*.tfvars
8+
.direnv/
9+
.envrc

charts/defguard/Chart.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
dependencies:
22
- name: postgresql
33
repository: https://charts.bitnami.com/bitnami
4-
version: 12.12.10
4+
version: 18.0.8
55
- name: defguard-proxy
66
repository: https://defguard.github.io/deployment
77
version: 0.7.1
88
- name: defguard-gateway
99
repository: https://defguard.github.io/deployment
1010
version: 0.4.1
11-
digest: sha256:7bb441a6a7ccae95df1f9647054809361a3d76b27a49633f3b6407b297780fc2
12-
generated: "2025-10-02T13:49:57.788416548+02:00"
11+
digest: sha256:f36d1a1caf0c7cc8305a9e50501e507b1bab8adeac8770b7873ea8359f6a35f6
12+
generated: "2025-10-09T12:08:15.737758702+02:00"

charts/defguard/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,13 @@ name: defguard
33
description: Defguard is an open-source enterprise WireGuard VPN with MFA and SSO
44

55
type: application
6-
version: 0.12.4
7-
appVersion: 1.5.1
6+
version: 0.13.0
7+
appVersion: 1.5.2
88

99
dependencies:
1010
- name: postgresql
1111
condition: postgresql.enabled
12-
version: 12.12.10
12+
version: 18.0.8
1313
repository: https://charts.bitnami.com/bitnami
1414
- name: defguard-proxy
1515
condition: defguard-proxy.enabled

charts/defguard/README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<p align="center">
2+
<img src="docs/header.png" alt="defguard">
3+
</p>
4+
5+
# Defguard Helm chart
6+
7+
This Helm chart can be used to deploy the whole [Defguard](https://defguard.net/) stack:
8+
9+
- Defguard Core service
10+
- Postgres database
11+
- Defguard Gateway service
12+
- public Defguard Proxy service
13+
14+
Check our [documentation](https://docs.defguard.net/deployment-strategies/kubernetes) for deployment
15+
instructions.
16+
17+
## ⚠️ Important: Postgres image tags
18+
19+
Due to changes in Bitnami policy the Postgres subchart now uses the `latest` tag by default.
20+
Remember to set a specific tag in your `values.yaml` to avoid issues with major version upgrades in production environments.
-61.1 KB
Binary file not shown.
85.8 KB
Binary file not shown.

charts/defguard/values.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ postgresql:
9393
existingSecret: postgres-password
9494
existingSecretPasswordKey: "" # set if using external postgresql ~ enabled: false
9595
username: defguard
96+
image:
97+
repository: bitnami/postgresql
98+
tag: latest # IMPORTANT: set to a specific tag to avoid issues with major version upgrades
9699

97100
#
98101
# sub-chart defguard-proxy

flake.lock

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)