mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 01:06:27 +00:00
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:
parent
99248b1406
commit
21ffdd1a28
@ -53,7 +53,7 @@ spec:
|
|||||||
- mountPath: /registration
|
- mountPath: /registration
|
||||||
name: registration-dir
|
name: registration-dir
|
||||||
- name: mock
|
- 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:
|
args:
|
||||||
- "--name=mock.storage.k8s.io"
|
- "--name=mock.storage.k8s.io"
|
||||||
- "-v=3" # enabled the gRPC call logging
|
- "-v=3" # enabled the gRPC call logging
|
||||||
@ -70,11 +70,12 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /csi
|
- mountPath: /csi
|
||||||
name: socket-dir
|
name: socket-dir
|
||||||
|
- mountPath: /etc/hooks
|
||||||
|
name: hooks
|
||||||
- mountPath: /var/lib/kubelet/pods
|
- mountPath: /var/lib/kubelet/pods
|
||||||
mountPropagation: Bidirectional
|
name: kubelet-pods-dir
|
||||||
name: mountpoint-dir
|
- mountPath: /var/lib/kubelet/plugins/kubernetes.io/csi
|
||||||
- name: hooks
|
name: kubelet-csi-dir
|
||||||
mountPath: /etc/hooks
|
|
||||||
volumes:
|
volumes:
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/lib/kubelet/plugins/csi-mock
|
path: /var/lib/kubelet/plugins/csi-mock
|
||||||
@ -82,8 +83,14 @@ spec:
|
|||||||
name: socket-dir
|
name: socket-dir
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/lib/kubelet/pods
|
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
|
type: DirectoryOrCreate
|
||||||
name: mountpoint-dir
|
name: kubelet-csi-dir
|
||||||
- hostPath:
|
- hostPath:
|
||||||
path: /var/lib/kubelet/plugins_registry
|
path: /var/lib/kubelet/plugins_registry
|
||||||
type: Directory
|
type: Directory
|
||||||
|
Loading…
Reference in New Issue
Block a user