Skip to content

Commit 3dfd22e

Browse files
authored
Update Postgresql, MariaDB, and Redis subcharts to the latest (⚠️ Major updates) (#580)
* update sub charts and add test for postgresql chart Signed-off-by: jessebot <[email protected]> * temporarily change the changes workflow to run on ubuntu-22.04 Signed-off-by: jessebot <[email protected]> * add helm and ct install steps for the installation jobs Signed-off-by: jessebot <[email protected]> * always run change detection step in integration testing steps Signed-off-by: jessebot <[email protected]> * always do a checkout before rest of integration test Signed-off-by: jessebot <[email protected]> * update the runs-on parameter for changes job to use ubuntu-latest-low again Signed-off-by: jessebot <[email protected]> --------- Signed-off-by: jessebot <[email protected]> Signed-off-by: JesseBot <[email protected]>
1 parent f8cf007 commit 3dfd22e

File tree

3 files changed

+81
-10
lines changed

3 files changed

+81
-10
lines changed

.github/workflows/lint-test.yaml

Lines changed: 72 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- 'charts/nextcloud/values.yaml'
2222
- 'charts/nextcloud/templates/**'
2323
24-
lint-test:
24+
lint:
2525
runs-on: ubuntu-22.04
2626
needs: changes
2727
if: needs.changes.outputs.src != 'false'
@@ -56,6 +56,36 @@ jobs:
5656
if: steps.list-changed.outputs.changed == 'true'
5757
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
5858

59+
test-internal-database:
60+
runs-on: ubuntu-22.04
61+
needs: [changes, lint]
62+
if: needs.changes.outputs.src != 'false'
63+
steps:
64+
- name: Checkout
65+
uses: actions/checkout@v4
66+
with:
67+
fetch-depth: 0
68+
69+
- name: Install Helm
70+
uses: azure/setup-helm@v4
71+
with:
72+
version: v3.14.4
73+
74+
- name: Add dependency chart repos
75+
run: |
76+
helm repo add bitnami https://charts.bitnami.com/bitnami
77+
78+
- name: Set up chart-testing
79+
uses: helm/[email protected]
80+
81+
- name: Run chart-testing (list-changed)
82+
id: list-changed
83+
run: |
84+
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
85+
if [[ -n "$changed" ]]; then
86+
echo "changed=true" >> "$GITHUB_OUTPUT"
87+
fi
88+
5989
- name: Create kind cluster
6090
uses: helm/[email protected]
6191
if: steps.list-changed.outputs.changed == 'true'
@@ -64,3 +94,44 @@ jobs:
6494
id: install
6595
if: steps.list-changed.outputs.changed == 'true'
6696
run: ct install --target-branch ${{ github.event.repository.default_branch }}
97+
98+
test-postgresql-database:
99+
runs-on: ubuntu-22.04
100+
needs: [changes, lint]
101+
if: needs.changes.outputs.src != 'false'
102+
steps:
103+
- name: Checkout
104+
uses: actions/checkout@v4
105+
with:
106+
fetch-depth: 0
107+
108+
- name: Install Helm
109+
uses: azure/setup-helm@v4
110+
with:
111+
version: v3.14.4
112+
113+
- name: Add dependency chart repos
114+
run: |
115+
helm repo add bitnami https://charts.bitnami.com/bitnami
116+
117+
- name: Set up chart-testing
118+
uses: helm/[email protected]
119+
120+
- name: Run chart-testing (list-changed)
121+
id: list-changed
122+
run: |
123+
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
124+
if [[ -n "$changed" ]]; then
125+
echo "changed=true" >> "$GITHUB_OUTPUT"
126+
fi
127+
128+
- name: Create kind cluster
129+
uses: helm/[email protected]
130+
if: steps.list-changed.outputs.changed == 'true'
131+
132+
- name: Run chart-testing (install)
133+
id: install
134+
if: steps.list-changed.outputs.changed == 'true'
135+
run: |
136+
ct install --target-branch ${{ github.event.repository.default_branch }} \
137+
--helm-extra-set-args "--set=postgresql.enabled=true --set=postgresql.global.postgresql.auth.password=testing123456 --set=internalDatabase.enabled=false --set=externalDatabase.enabled=True --set=externalDatabase.type=postgresql --set=externalDatabase.password=testing123456"

charts/nextcloud/Chart.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
dependencies:
22
- name: postgresql
33
repository: oci://registry-1.docker.io/bitnamicharts
4-
version: 12.12.10
4+
version: 15.5.0
55
- name: mariadb
66
repository: oci://registry-1.docker.io/bitnamicharts
7-
version: 12.2.9
7+
version: 18.2.0
88
- name: redis
99
repository: oci://registry-1.docker.io/bitnamicharts
10-
version: 17.13.2
11-
digest: sha256:92fe0891c35c2586cfe3b76154412c188bb75cc0a687e1d771fc4c1cf0f8973d
12-
generated: "2023-11-11T19:19:38.983179104+01:00"
10+
version: 19.5.0
11+
digest: sha256:4efc098feeb7f4486b7166f1c71b9c54bfee0797663a3339f379d397297303c7
12+
generated: "2024-06-03T09:51:56.321676+02:00"

charts/nextcloud/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: nextcloud
3-
version: 4.6.11
3+
version: 5.0.0
44
appVersion: 29.0.1
55
description: A file sharing server that puts the control and security of your own data back into your hands.
66
keywords:
@@ -23,14 +23,14 @@ maintainers:
2323
2424
dependencies:
2525
- name: postgresql
26-
version: 12.12.*
26+
version: 15.5.0
2727
repository: oci://registry-1.docker.io/bitnamicharts
2828
condition: postgresql.enabled
2929
- name: mariadb
30-
version: 12.2.*
30+
version: 18.2.0
3131
repository: oci://registry-1.docker.io/bitnamicharts
3232
condition: mariadb.enabled
3333
- name: redis
34-
version: 17.13.*
34+
version: 19.5.0
3535
repository: oci://registry-1.docker.io/bitnamicharts
3636
condition: redis.enabled

0 commit comments

Comments
 (0)