From 3bcccd4aea90c332fc847a9111baad49b90efdec Mon Sep 17 00:00:00 2001 From: jessebot Date: Thu, 23 Jan 2025 09:53:04 +0100 Subject: [PATCH] use test values file instead of cli args for ct --- .github/workflows/ci-helm-lint-test.yml | 4 +-- .../test-values/postgresql-plain.yaml | 29 +++++++++++++++++++ 2 files changed, 30 insertions(+), 3 deletions(-) create mode 100644 charts/pixelfed/test-values/postgresql-plain.yaml diff --git a/.github/workflows/ci-helm-lint-test.yml b/.github/workflows/ci-helm-lint-test.yml index dc22e38..f034d80 100644 --- a/.github/workflows/ci-helm-lint-test.yml +++ b/.github/workflows/ci-helm-lint-test.yml @@ -81,6 +81,4 @@ jobs: id: install if: steps.list-changed.outputs.changed == 'true' run: | - ct install \ - --target-branch ${{ github.event.repository.default_branch }} \ - --helm-extra-set-args "--set=pixelfed.mail.username=test --set=pixelfed.mail.password=testing1234567 --set=valkey.auth.password=testing1234567 --set=postgresql.auth.password=testing1234567 --set=postgresql.auth.postgresPassword=testing1234567 --set=postgresql.auth.database=pixelfed --set=postgresql.auth.username=pixelfed" + ct install --target-branch ${{ github.event.repository.default_branch }} --helm-extra-set-args "--values ./charts/pixelfed/test-values/postgresql-plain.yaml" --skip-clean-up diff --git a/charts/pixelfed/test-values/postgresql-plain.yaml b/charts/pixelfed/test-values/postgresql-plain.yaml new file mode 100644 index 0000000..3cc7bf5 --- /dev/null +++ b/charts/pixelfed/test-values/postgresql-plain.yaml @@ -0,0 +1,29 @@ +# This file is strictly for testing a base functionality of this chart +# it uses postgresql and valkey and provides credentials for them as well as mail + +pixelfed: + mail: + username: test + password: testing1234567 + +valkey: + auth: + enabled: true + password: testing1234567 + primary: + replicaCount: 2 + disableCommands: + - FLUSHALL + persistence: + enabled: false + replica: + replicaCount: 0 + persistence: + enabled: false + +postgresql: + auth: + password: testing1234567 + postgresPassword: testing1234567 + username: pixelfed + database: pixelfed