From bc550e8e1d8c445345c3f347832fc4f3c00646ef Mon Sep 17 00:00:00 2001 From: Akash Srivastava Date: Wed, 17 Oct 2018 17:53:47 +0530 Subject: [PATCH] Add rules in clusterrole for k8s snapshot components This will add rules to cluster role for k8s snapshot components. These RBAC permissions are required for scope to fetch details about volumesnapshots and volumesnapshotdata resources. Signed-off-by: Akash Srivastava --- examples/k8s/cluster-role.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/examples/k8s/cluster-role.yaml b/examples/k8s/cluster-role.yaml index f51d9a7bd..5f70075ef 100644 --- a/examples/k8s/cluster-role.yaml +++ b/examples/k8s/cluster-role.yaml @@ -51,3 +51,11 @@ rules: verbs: - list - watch +- apiGroups: + - volumesnapshot.external-storage.k8s.io + resources: + - volumesnapshots + - volumesnapshotdatas + verbs: + - list + - watch