Skip to content

Commit

Permalink
Full test set
Browse files Browse the repository at this point in the history
  • Loading branch information
allanger committed Oct 27, 2024
1 parent 17e609c commit 3758d4a
Showing 1 changed file with 35 additions and 19 deletions.
54 changes: 35 additions & 19 deletions .github/workflows/helm-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,40 +95,56 @@ jobs:
with:
node_image: kindest/node:${{ matrix.k8s_version }}
config: ./kind-config.yaml

- uses: helmfile/[email protected]
with:
helmfile-version: 'v0.167.1'
helm-version: 'v3.15.4'
helm-plugins: >
https://github.com/databus23/helm-diff, https://github.com/jkroepke/helm-secrets
helmfile-args: sync --wait
- name: Test the db-operator chart

- name: Test the db-operator chart install
run: |
ct install --target-branch main --charts ./charts/db-operator
helmfile destroy
# Test is broken because of the image in the previous version,
# so upgrate can't pass
#- name: Test db-operator charts upgrade
# run: |
# helmfile -l name=prometheus-stack sync
# helmfile sync
# ct install --target-branch main --charts ./charts/db-operator --upgrade
# helmfile destroy
- uses: helmfile/[email protected]
with:
helmfile-version: 'v0.167.1'
helm-version: 'v3.15.4'
helm-plugins: >
https://github.com/databus23/helm-diff, https://github.com/jkroepke/helm-secrets
helmfile-args: sync --wait

- name: Test the db-operator chart upgrade
run: |
ct install --target-branch main --charts ./charts/db-operator --upgrade
helmfile destroy
- uses: helmfile/[email protected]
with:
helmfile-version: 'v0.167.1'
helm-version: 'v3.15.4'
helm-plugins: >
https://github.com/databus23/helm-diff, https://github.com/jkroepke/helm-secrets
helmfile-args: sync --wait

- name: Test db-instances charts install
run: |
helmfile -l name=prometheus-stack sync
helmfile sync -e instances
kubectl rollout status deploy/db-operator -n db-operator
kubectl rollout status deploy/db-operator-webhook -n db-operator
ct install --target-branch main --charts ./charts/db-instances
helmfile destroy
- name: Test db-instances charts install
- uses: helmfile/[email protected]
with:
helmfile-version: 'v0.167.1'
helm-version: 'v3.15.4'
helm-plugins: >
https://github.com/databus23/helm-diff, https://github.com/jkroepke/helm-secrets
helmfile-args: sync --wait

- name: Test db-instances charts upgrade
run: |
helmfile -l name=prometheus-stack sync
helmfile sync -e instances
kubectl rollout status deploy/db-operator -n db-operator
kubectl rollout status deploy/db-operator-webhook -n db-operator
ct install --target-branch main --charts ./charts/db-instances --upgrade
helmfile destroy
release:
Expand Down

0 comments on commit 3758d4a

Please sign in to comment.