Skip to content

Commit 08e7e31

Browse files
authored
Consistently give watch permission together with list permission (#24)
1 parent 275fb63 commit 08e7e31

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

template/deploy/helm/[[product]]-operator/templates/roles.yaml.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ rules:
1212
verbs:
1313
- get
1414
- list
15+
- watch
1516
{[% endif %}]
1617
{[% if operator.product_string in ['hbase']%}]
1718
# For Apache HDFS dependents
@@ -22,6 +23,7 @@ rules:
2223
verbs:
2324
- get
2425
- list
26+
- watch
2527
{[% endif %}]
2628
{[% if operator.product_string in ['kafka', 'trino', 'opa']%}]
2729
# For OPA dependents. Note that OPA it's self is listed here because it's own resource name
@@ -47,6 +49,7 @@ rules:
4749
verbs:
4850
- get
4951
- list
52+
- watch
5053
{[% endif %}]
5154
{[% if operator.product_string in ['regorule']%}]
5255
- apiGroups:
@@ -64,6 +67,7 @@ rules:
6467
- nodes
6568
verbs:
6669
- list
70+
- watch
6771
- apiGroups:
6872
- ""
6973
resources:
@@ -73,6 +77,7 @@ rules:
7377
- create
7478
- delete
7579
- list
80+
- watch
7681
- update
7782
- apiGroups:
7883
- batch

0 commit comments

Comments
 (0)