test: update CSI mock driver

The new release properly checks for existence of the staging
directory. The names of the volumes are now the same as in
https://github.com/kubernetes-csi/csi-test/blob/master/mock/example/deploy/csi-mock-driver-deployment.yaml
This commit is contained in:
Patrick Ohly 2021-02-25 13:19:50 +01:00
parent 99248b1406
commit 21ffdd1a28

View File

@ -53,7 +53,7 @@ spec:
- mountPath: /registration
name: registration-dir
- name: mock
image: k8s.gcr.io/sig-storage/mock-driver:v4.0.2
image: k8s.gcr.io/sig-storage/mock-driver:v4.1.0
args:
- "--name=mock.storage.k8s.io"
- "-v=3" # enabled the gRPC call logging
@ -70,11 +70,12 @@ spec:
volumeMounts:
- mountPath: /csi
name: socket-dir
- mountPath: /etc/hooks
name: hooks
- mountPath: /var/lib/kubelet/pods
mountPropagation: Bidirectional
name: mountpoint-dir
- name: hooks
mountPath: /etc/hooks
name: kubelet-pods-dir
- mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi
name: kubelet-csi-dir
volumes:
- hostPath:
path: /var/lib/kubelet/plugins/csi-mock
@ -82,8 +83,14 @@ spec:
name: socket-dir
- hostPath:
path: /var/lib/kubelet/pods
type: Directory
# mock driver doesn't make mounts and therefore doesn't need mount propagation.
# mountPropagation: Bidirectional
name: kubelet-pods-dir
- hostPath:
path: /var/lib/kubelet/plugins/kubernetes.io/csi
type: DirectoryOrCreate
name: mountpoint-dir
name: kubelet-csi-dir
- hostPath:
path: /var/lib/kubelet/plugins_registry
type: Directory