Skip to content

Commit

Permalink
add minio test cas
Browse files Browse the repository at this point in the history
  • Loading branch information
holysoles committed Jan 29, 2025
1 parent 95b79ff commit 40dd29f
Show file tree
Hide file tree
Showing 2 changed files with 104 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci-helm-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,45 @@ jobs:
ct install \
--target-branch ${{ github.event.repository.default_branch }} \
--helm-extra-set-args "--values ./charts/pixelfed/test-values/postgresql-plain.yaml"
test_plain_minio:
name: Test chart plain with minio subchart
runs-on: ubuntu-latest
needs: lint
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: "0"
ref: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}

- name: Install Helm
uses: azure/setup-helm@v4

- name: Add dependency chart repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Create kind cluster
uses: helm/[email protected]
if: steps.list-changed.outputs.changed == 'true'

- name: Run chart-testing (install)
id: install
if: steps.list-changed.outputs.changed == 'true'
run: |
ct install \
--target-branch ${{ github.event.repository.default_branch }} \
--helm-extra-set-args "--values ./charts/pixelfed/test-values/minio-plain.yaml"
62 changes: 62 additions & 0 deletions charts/pixelfed/test-values/minio-plain.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
# 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:
app:
domain: "example.com"
mail:
username: test
password: testing1234567
horizon:
separate_deployment: false
pf:
enable_cloud: true

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

minio:
enabled: true
provisioning:
enabled: true
persistence:
enabled: false

livenessProbe:
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
httpGet:
path: /api/service/health-check
port: http

readinessProbe:
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 5
failureThreshold: 3
successThreshold: 1
httpGet:
path: /api/service/health-check
port: http

0 comments on commit 40dd29f

Please sign in to comment.