-
Notifications
You must be signed in to change notification settings - Fork 24
37 lines (37 loc) · 1.32 KB
/
restart-ds-crio.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: restart-ds-crio-8mins
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Start a kind cluster with crio
uses: helm/[email protected]
with:
cluster_name: kind-${{ github.run_id }}
kubectl_version: "v1.25.2"
node_image: "docker.io/warmmetal/kindest-node-crio:v1.25.2-container-image-csi-driver"
- name: Build image
run: ./hack/ci/build.sh
- name: Set image version
run: |
echo "VALUE_FILE=charts/warm-metal-csi-driver/values-crio.yaml" >> "$GITHUB_ENV"
echo "IMAGE_TAG=$(git rev-parse --short HEAD)" >> "$GITHUB_ENV"
echo "HELM_NAME=wm-csi-integration-tests" >> "$GITHUB_ENV"
- name: Install the CSI Driver
run: |
trap "kubectl -n kube-system describe po" ERR
helm install ${HELM_NAME} charts/warm-metal-csi-driver -n kube-system \
-f ${VALUE_FILE} \
--set csiPlugin.image.tag=${IMAGE_TAG} \
--wait \
--debug
- name: Test volumes between the ds restarted
run: ./test/integration/restart-ds.sh
- name: Uninstall the CSI Driver
run: helm uninstall -n kube-system ${HELM_NAME} --wait