diff --git a/Makefile b/Makefile index c011f026..9593ccc4 100644 --- a/Makefile +++ b/Makefile @@ -151,6 +151,8 @@ endif .PHONY: install-nfs-server install-nfs-server: kubectl apply -f ./deploy/example/nfs-provisioner/nfs-server.yaml + kubectl delete secret mount-options --ignore-not-found + kubectl create secret generic mount-options --from-literal mountOptions="nfsvers=4.1" .PHONY: install-helm install-helm: diff --git a/test/e2e/e2e_suite_test.go b/test/e2e/e2e_suite_test.go index a3b69328..09680c67 100644 --- a/test/e2e/e2e_suite_test.go +++ b/test/e2e/e2e_suite_test.go @@ -47,6 +47,8 @@ var ( defaultStorageClassParameters = map[string]string{ "server": "nfs-server.default.svc.cluster.local", "share": "/", + "csi.storage.k8s.io/provisioner-secret-name": "mount-options", + "csi.storage.k8s.io/provisioner-secret-namespace": "default", } controllerServer *nfs.ControllerServer )