|
@ -10,8 +10,11 @@ metadata: |
|
|
name: vsphere-csi-controller-role |
|
|
name: vsphere-csi-controller-role |
|
|
rules: |
|
|
rules: |
|
|
- apiGroups: [""] |
|
|
- apiGroups: [""] |
|
|
resources: ["nodes", "persistentvolumeclaims", "pods", "configmaps"] |
|
|
|
|
|
|
|
|
resources: ["nodes", "pods", "configmaps"] |
|
|
verbs: ["get", "list", "watch"] |
|
|
verbs: ["get", "list", "watch"] |
|
|
|
|
|
- apiGroups: [""] |
|
|
|
|
|
resources: ["persistentvolumeclaims"] |
|
|
|
|
|
verbs: ["get", "list", "watch", "update"] |
|
|
{% if external_vsphere_version >= "7.0" %} |
|
|
{% if external_vsphere_version >= "7.0" %} |
|
|
- apiGroups: [""] |
|
|
- apiGroups: [""] |
|
|
resources: ["persistentvolumeclaims/status"] |
|
|
resources: ["persistentvolumeclaims/status"] |
|
@ -66,7 +69,7 @@ rules: |
|
|
verbs: [ "watch", "get", "list" ] |
|
|
verbs: [ "watch", "get", "list" ] |
|
|
- apiGroups: [ "snapshot.storage.k8s.io" ] |
|
|
- apiGroups: [ "snapshot.storage.k8s.io" ] |
|
|
resources: [ "volumesnapshotcontents" ] |
|
|
resources: [ "volumesnapshotcontents" ] |
|
|
verbs: [ "create", "get", "list", "watch", "update", "delete" ] |
|
|
|
|
|
|
|
|
verbs: [ "create", "get", "list", "watch", "update", "delete", "patch" ] |
|
|
- apiGroups: [ "snapshot.storage.k8s.io" ] |
|
|
- apiGroups: [ "snapshot.storage.k8s.io" ] |
|
|
resources: [ "volumesnapshotcontents/status" ] |
|
|
resources: [ "volumesnapshotcontents/status" ] |
|
|
verbs: [ "update", "patch" ] |
|
|
verbs: [ "update", "patch" ] |
|
|