-
Notifications
You must be signed in to change notification settings - Fork 149
69 lines (66 loc) · 2.51 KB
/
e2e-k8s-embedded-lvmd.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: "e2e-k8s-embedded-lvmd"
on:
pull_request:
paths-ignore:
- "**/*.md"
- "CODEOWNERS"
push:
paths-ignore:
- "**/*.md"
- "CODEOWNERS"
branches:
- "main"
jobs:
e2e-k8s-embedded-lvmd:
name: "e2e-k8s-embedded-lvmd"
runs-on: "ubuntu-20.04"
strategy:
fail-fast: false
matrix:
kubernetes_versions: ["1.27.3", "1.26.6", "1.25.11"]
env:
KUBERNETES_VERSION: ${{ matrix.kubernetes_versions }}
STORAGE_CAPACITY: "true"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version-file: "go.mod"
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: cache go dependencies
uses: actions/cache@v3
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: go-${{ hashFiles('go.sum', 'Makefile') }}
restore-keys: |
go-
- name: cache e2e sidecar binaries
uses: actions/cache@v3
with:
path: |
e2e/tmpbin
key: e2e-sidecars-${{ hashFiles('csi-sidecars.mk') }}
restore-keys: |
e2e-sidecars-
- name: install dependencies of minikube
run: |
# These tools are required to use minikube for Kubernetes v1.24+
# For CNI plugins, see https://github.com/Mirantis/cri-dockerd/blob/v0.2.6/README.md#important
CNI_PLUGINS_VERSION="v1.3.0"
curl -L -o cni-plugins.tgz https://github.com/containernetworking/plugins/releases/download/${CNI_PLUGINS_VERSION}/cni-plugins-linux-amd64-${CNI_PLUGINS_VERSION}.tgz
sudo mkdir -p /opt/cni/bin
sudo tar -C /opt/cni/bin -xzf cni-plugins.tgz
# Install cri-docker
CRI_DOCKERD_VERSION="v0.3.4"
curl -L -o cri-dockerd.deb https://github.com/Mirantis/cri-dockerd/releases/download/${CRI_DOCKERD_VERSION}/cri-dockerd_${CRI_DOCKERD_VERSION#v}.3-0.ubuntu-focal_amd64.deb
sudo dpkg -i cri-dockerd.deb
CRICTL_VERSION="v1.28.0"
curl -L https://github.com/kubernetes-sigs/cri-tools/releases/download/$CRICTL_VERSION/crictl-${CRICTL_VERSION}-linux-amd64.tar.gz --output crictl-${CRICTL_VERSION}-linux-amd64.tar.gz
sudo tar zxvf crictl-$CRICTL_VERSION-linux-amd64.tar.gz -C /usr/local/bin
- run: make -C e2e embedded-lvmd/create-vg
- run: make -C e2e embedded-lvmd/setup-minikube
- run: make -C e2e embedded-lvmd/launch-minikube
- run: make -C e2e embedded-lvmd/test