Skip to content

Commit

Permalink
ci: add k8s helm chart upgrade test
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 20, 2022
1 parent 74a7ed6 commit b23cb3a
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ jobs:
go test
kubernetes-tests:
name: "Test k8s backend and Helm chart"
runs-on: ubuntu-latest

strategy:
Expand All @@ -114,6 +115,7 @@ jobs:
#
include:
- k3s-channel: v1.20
upgrade-from: "0.9.0"
- k3s-channel: v1.21
- k3s-channel: v1.22
- k3s-channel: v1.23
Expand Down Expand Up @@ -157,14 +159,29 @@ jobs:
--include-crds \
--values=resources/helm/testing/chart-install-values.yaml
- name: helm install previous version
if: matrix.upgrade-from != ''
run: |
# relocate to a directory where there isn't a folder named
# dask-gateway to avoid making helm think we mean a local folder
cd resources/helm/testing
helm install \
test-dask-gateway \
dask-gateway \
--repo=https://helm.dask.org \
--version=${{ matrix.upgrade-from }} \
--values=chart-install-values.yaml
- working-directory: resources/helm
run: chartpress

- name: helm install
- name: helm install (or upgrade)
run: |
helm install \
helm upgrade \
test-dask-gateway \
resources/helm/dask-gateway \
--install \
--values=resources/helm/testing/chart-install-values.yaml \
--wait \
--timeout 3m0s
Expand Down

0 comments on commit b23cb3a

Please sign in to comment.