Update verbs for volumeattachments resource (#8731)

* Update verbs for volumeattachments resource

Update verbs for volumeattachments resource so that the kubelet can create volumeattachments and mount volumes when deploying Kubernetes on VMware vSphere.

* Update verbs for volumeattachments resource

Update verbs for volumeattachments resource to match upstream

* Update vsphere-csi-controller-rbac.yml.j2
This commit is contained in:
Mulugeta Ayalew Tamiru 2022-04-22 09:04:13 +02:00 committed by GitHub
parent 2c2d4513ac
commit 3f065918d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,7 +40,7 @@ rules:
verbs: ["get", "list", "watch"] verbs: ["get", "list", "watch"]
- apiGroups: ["storage.k8s.io"] - apiGroups: ["storage.k8s.io"]
resources: ["volumeattachments"] resources: ["volumeattachments"]
verbs: ["get", "list", "watch", "patch"] verbs: ["get", "list", "watch", "patch", "update"]
{% if external_vsphere_version >= "7.0u1" %} {% if external_vsphere_version >= "7.0u1" %}
- apiGroups: ["cns.vmware.com"] - apiGroups: ["cns.vmware.com"]
resources: ["triggercsifullsyncs"] resources: ["triggercsifullsyncs"]