test: add e2e test for mountOptions support in DeleteVolume

This commit is contained in:
andyzhangx 2022-01-02 08:24:15 +00:00
parent d0ea11dac3
commit 498e837370
2 changed files with 4 additions and 0 deletions

View File

@ -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:

View File

@ -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
)