Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion mock/example/deploy/csi-mock-driver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,16 @@ spec:
volumeMounts:
- mountPath: /csi
name: socket-dir
- name: csi-attacher
image: k8s.gcr.io/sig-storage/csi-attacher:v3.1.0
args:
- "--v=5"
- "--csi-address=/csi/csi.sock"
securityContext:
privileged: true
volumeMounts:
- mountPath: /csi
name: socket-dir
- name: csi-snapshotter
image: k8s.gcr.io/sig-storage/csi-snapshotter:v2.1.0
args:
Expand Down Expand Up @@ -104,7 +114,7 @@ kind: CSIDriver
metadata:
name: io.kubernetes.storage.mock
spec:
attachRequired: false
attachRequired: true
podInfoOnMount: false

---
Expand Down
5 changes: 4 additions & 1 deletion mock/example/deploy/csi-mock-driver-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,10 @@ rules:
verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"]
verbs: ["get", "list", "watch"]
verbs: ["get", "list", "watch", "patch"]
- apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments/status"]
verbs: ["patch"]
- apiGroups: [""]
resources: ["pods"]
verbs: ["get", "list", "watch"]
Expand Down