Skip to content

Commit 498e837

Browse files
committed
test: add e2e test for mountOptions support in DeleteVolume
1 parent d0ea11d commit 498e837

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ endif
151151
.PHONY: install-nfs-server
152152
install-nfs-server:
153153
kubectl apply -f ./deploy/example/nfs-provisioner/nfs-server.yaml
154+
kubectl delete secret mount-options --ignore-not-found
155+
kubectl create secret generic mount-options --from-literal mountOptions="nfsvers=4.1"
154156

155157
.PHONY: install-helm
156158
install-helm:

test/e2e/e2e_suite_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ var (
4747
defaultStorageClassParameters = map[string]string{
4848
"server": "nfs-server.default.svc.cluster.local",
4949
"share": "/",
50+
"csi.storage.k8s.io/provisioner-secret-name": "mount-options",
51+
"csi.storage.k8s.io/provisioner-secret-namespace": "default",
5052
}
5153
controllerServer *nfs.ControllerServer
5254
)

0 commit comments

Comments
 (0)