Skip to content

Commit 96e1ea0

Browse files
authored
Add permission to list nodes (#100)
ref: https://github.com/kmodules/client-go/blob/kubernetes-1.18.3/discovery/lib.go#L179-L185 Signed-off-by: Tamal Saha <tamal@appscode.com>
1 parent e18b2f9 commit 96e1ea0

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

charts/stash-enterprise/templates/cluster-role.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ rules:
8282
resources:
8383
- events
8484
verbs: ["get", "list", "create", "patch"]
85+
- apiGroups:
86+
- ""
87+
resources:
88+
- nodes
89+
verbs: ["list"]
8590
- apiGroups:
8691
- ""
8792
resources:

charts/stash/templates/cluster-role.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ rules:
7777
resources:
7878
- events
7979
verbs: ["get", "list", "create", "patch"]
80+
- apiGroups:
81+
- ""
82+
resources:
83+
- nodes
84+
verbs: ["list"]
8085
- apiGroups:
8186
- ""
8287
resources:

0 commit comments

Comments
 (0)