test: run external e2e test using 1.20 suites

run on 1.20

run on 1.21

run on 1.20
This commit is contained in:
andyzhangx 2021-05-23 09:47:55 +00:00
parent 02dc875fbb
commit 61fca129a0
2 changed files with 4 additions and 4 deletions

View File

@ -24,12 +24,12 @@ install_ginkgo () {
} }
setup_e2e_binaries() { setup_e2e_binaries() {
# download k8s external e2e binary for kubernetes v1.19 # download k8s external e2e binary for kubernetes v1.20
curl -sL https://storage.googleapis.com/kubernetes-release/release/v1.19.0/kubernetes-test-linux-amd64.tar.gz --output e2e-tests.tar.gz curl -sL https://storage.googleapis.com/kubernetes-release/release/v1.20.0/kubernetes-test-linux-amd64.tar.gz --output e2e-tests.tar.gz
tar -xvf e2e-tests.tar.gz && rm e2e-tests.tar.gz tar -xvf e2e-tests.tar.gz && rm e2e-tests.tar.gz
# install the csi driver nfs # install the csi driver nfs
mkdir -p /tmp/csi-nfs && cp deploy/example/storageclass-nfs.yaml /tmp/csi-nfs/storageclass.yaml mkdir -p /tmp/csi && cp deploy/example/storageclass-nfs.yaml /tmp/csi/storageclass.yaml
make e2e-bootstrap make e2e-bootstrap
make install-nfs-server make install-nfs-server
} }

View File

@ -2,7 +2,7 @@
# See https://github.com/kubernetes/kubernetes/tree/master/test/e2e/storage/external # See https://github.com/kubernetes/kubernetes/tree/master/test/e2e/storage/external
StorageClass: StorageClass:
FromFile: /tmp/csi-nfs/storageclass.yaml FromFile: /tmp/csi/storageclass.yaml
DriverInfo: DriverInfo:
Name: nfs.csi.k8s.io Name: nfs.csi.k8s.io
Capabilities: Capabilities: