From b629b22cf065b05654c8a45f5a43322d74406b29 Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Wed, 27 Feb 2019 19:29:11 +0530 Subject: [PATCH] Add csinodeinfos rules Signed-off-by: Madhu Rajanna --- deploy/cephfs/helm/templates/attacher-clusterrole.yaml | 3 +++ deploy/cephfs/helm/templates/provisioner-clusterrole.yaml | 3 +++ deploy/cephfs/kubernetes/csi-attacher-rbac.yaml | 3 +++ deploy/cephfs/kubernetes/csi-provisioner-rbac.yaml | 3 +++ 4 files changed, 12 insertions(+) diff --git a/deploy/cephfs/helm/templates/attacher-clusterrole.yaml b/deploy/cephfs/helm/templates/attacher-clusterrole.yaml index 2f70448e2..a66256500 100644 --- a/deploy/cephfs/helm/templates/attacher-clusterrole.yaml +++ b/deploy/cephfs/helm/templates/attacher-clusterrole.yaml @@ -22,4 +22,7 @@ rules: - apiGroups: ["storage.k8s.io"] resources: ["volumeattachments"] verbs: ["get", "list", "watch", "update"] + - apiGroups: ["csi.storage.k8s.io"] + resources: ["csinodeinfos"] + verbs: ["get", "list", "watch"] {{- end -}} diff --git a/deploy/cephfs/helm/templates/provisioner-clusterrole.yaml b/deploy/cephfs/helm/templates/provisioner-clusterrole.yaml index 590521ab2..6e6721cbf 100644 --- a/deploy/cephfs/helm/templates/provisioner-clusterrole.yaml +++ b/deploy/cephfs/helm/templates/provisioner-clusterrole.yaml @@ -28,4 +28,7 @@ rules: - apiGroups: [""] resources: ["configmaps"] verbs: ["get", "list", "create", "delete"] + - apiGroups: ["csi.storage.k8s.io"] + resources: ["csinodeinfos"] + verbs: ["get", "list", "watch"] {{- end -}} diff --git a/deploy/cephfs/kubernetes/csi-attacher-rbac.yaml b/deploy/cephfs/kubernetes/csi-attacher-rbac.yaml index e0bcbd81a..3b16a8ea2 100644 --- a/deploy/cephfs/kubernetes/csi-attacher-rbac.yaml +++ b/deploy/cephfs/kubernetes/csi-attacher-rbac.yaml @@ -19,6 +19,9 @@ rules: - apiGroups: ["storage.k8s.io"] resources: ["volumeattachments"] verbs: ["get", "list", "watch", "update"] + - apiGroups: ["csi.storage.k8s.io"] + resources: ["csinodeinfos"] + verbs: ["get", "list", "watch"] --- kind: ClusterRoleBinding diff --git a/deploy/cephfs/kubernetes/csi-provisioner-rbac.yaml b/deploy/cephfs/kubernetes/csi-provisioner-rbac.yaml index 7bf0da300..823b16a9b 100644 --- a/deploy/cephfs/kubernetes/csi-provisioner-rbac.yaml +++ b/deploy/cephfs/kubernetes/csi-provisioner-rbac.yaml @@ -22,6 +22,9 @@ rules: - apiGroups: ["storage.k8s.io"] resources: ["storageclasses"] verbs: ["get", "list", "watch"] + - apiGroups: ["csi.storage.k8s.io"] + resources: ["csinodeinfos"] + verbs: ["get", "list", "watch"] --- kind: ClusterRoleBinding