From 52161d602c9afd41d41d369f99c8b0ed7204ad27 Mon Sep 17 00:00:00 2001 From: WrenIX Date: Tue, 22 Oct 2024 17:01:59 +0200 Subject: [PATCH] fix(nextcloud): move ci lint-test values to yaml file Signed-off-by: WrenIX --- .github/workflows/lint-test.yaml | 8 +++---- charts/nextcloud/Chart.yaml | 2 +- charts/nextcloud/test-values/hpa.yaml | 5 +++++ charts/nextcloud/test-values/nginx.yaml | 5 +++++ charts/nextcloud/test-values/postgresql.yaml | 14 +++++++++++++ .../test-values/s3-as-primary-storage.yaml | 21 +++++++++++++++++++ 6 files changed, 50 insertions(+), 5 deletions(-) create mode 100644 charts/nextcloud/test-values/hpa.yaml create mode 100644 charts/nextcloud/test-values/nginx.yaml create mode 100644 charts/nextcloud/test-values/postgresql.yaml create mode 100644 charts/nextcloud/test-values/s3-as-primary-storage.yaml diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index 4c673cbc..d5981f27 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -72,21 +72,21 @@ jobs: # test the helm chart with postgresql subchart enabled - name: PostgreSQL Enabled - helm_args: '--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=testing12345"' + helm_args: '--helm-extra-set-args "--values charts/nextcloud/test-values/postgresql.yaml"' # test the helm chart with nginx container enabled - name: Nginx Enabled - helm_args: '--helm-extra-set-args "--set=image.flavor=fpm --set=nginx.enabled=true"' + helm_args: '--helm-extra-set-args "--values charts/nextcloud/test-values/nginx.yaml"' # test the helm chart with horizontal pod autoscaling enabled - name: Horizontal Pod Autoscaling Enabled - helm_args: '--helm-extra-set-args "--set=hpa.enabled=true --set=hpa.minPods=2 --set=hpa.maxPods=3 --set=hpa.targetCPUUtilizationPercentage=75"' + helm_args: '--helm-extra-set-args "--values charts/nextcloud/test-values/hpa.yaml"' # test the helm chart with s3 as the primary storage - name: S3 Enabled as Primary Storage # we need to skip the clean up so we can test adding a file helm_args: | - --namespace nextcloud --skip-clean-up --helm-extra-set-args "--set=fullnameOverride=nextcloud --set=nextcloud.objectStore.s3.enabled=true --set=nextcloud.objectStore.s3.accessKey=nextcloud --set=nextcloud.objectStore.s3.secretKey=rootpass123 --set=nextcloud.objectStore.s3.host=minio.nextcloud.svc.cluster.local --set=nextcloud.objectStore.s3.port=9000 --set=nextcloud.objectStore.s3.ssl=false --set=nextcloud.objectStore.s3.bucket=nextcloud --set=nextcloud.objectStore.s3.usePathStyle=true --set=image.flavor=fpm --set=nginx.enabled=true --set=nextcloud.host=nextcloud --set=nextcloud.trustedDomains[0]='*'" + --namespace nextcloud --skip-clean-up --helm-extra-set-args "--values charts/nextcloud/test-values/s3-as-primary-storage.yaml" steps: - name: Checkout diff --git a/charts/nextcloud/Chart.yaml b/charts/nextcloud/Chart.yaml index 5ee041d3..e1dba9fc 100644 --- a/charts/nextcloud/Chart.yaml +++ b/charts/nextcloud/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v2 name: nextcloud -version: 6.2.0 +version: 6.2.1 appVersion: 30.0.1 description: A file sharing server that puts the control and security of your own data back into your hands. keywords: diff --git a/charts/nextcloud/test-values/hpa.yaml b/charts/nextcloud/test-values/hpa.yaml new file mode 100644 index 00000000..eb7e39e1 --- /dev/null +++ b/charts/nextcloud/test-values/hpa.yaml @@ -0,0 +1,5 @@ +hpa: + enabled: true + minPods: 2 + maxPods: 3 + targetCPUUtilizationPercentage: 75 diff --git a/charts/nextcloud/test-values/nginx.yaml b/charts/nextcloud/test-values/nginx.yaml new file mode 100644 index 00000000..82ff4b84 --- /dev/null +++ b/charts/nextcloud/test-values/nginx.yaml @@ -0,0 +1,5 @@ +image: + flavor: fpm + +nginx: + enabled: true diff --git a/charts/nextcloud/test-values/postgresql.yaml b/charts/nextcloud/test-values/postgresql.yaml new file mode 100644 index 00000000..4b4600e7 --- /dev/null +++ b/charts/nextcloud/test-values/postgresql.yaml @@ -0,0 +1,14 @@ +postgresql: + enabled: true + global: + postgresql: + auth: + password: "testing123456" + +internalDatabase: + enabled: false + +externalDatabase: + enabled: true + type: postgresql + password: "testing123456" diff --git a/charts/nextcloud/test-values/s3-as-primary-storage.yaml b/charts/nextcloud/test-values/s3-as-primary-storage.yaml new file mode 100644 index 00000000..fd77a03e --- /dev/null +++ b/charts/nextcloud/test-values/s3-as-primary-storage.yaml @@ -0,0 +1,21 @@ +fullnameOverride: nextcloud + +image: + flavor: fpm + +nextcloud: + host: nextcloud + trustedDomains: [ "*" ] + objectStore: + s3: + enabled: true + host: minio.nextcloud.svc.cluster.local + port: 9000 + ssl: false + accessKey: nextcloud + secretKey: rootpass123 + bucket: nextcloud + usePathStyle: true + +nginx: + enabled: true