Skip to content

Commit 8d00aba

Browse files
authored
1 parent 3972c4a commit 8d00aba

File tree

3 files changed

+44
-9
lines changed

3 files changed

+44
-9
lines changed

pkg/cmd/install/hubaddon/scenario/addon/policy/addon-controller_clusterrole.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ metadata:
66
app: governance-policy-addon-controller
77
name: policy-addon-ctrl-manager-role
88
rules:
9+
- apiGroups:
10+
- addon.open-cluster-management.io
11+
resources:
12+
- addondeploymentconfigs
13+
verbs:
14+
- get
15+
- list
16+
- watch
917
- apiGroups:
1018
- addon.open-cluster-management.io
1119
resources:
@@ -93,6 +101,14 @@ rules:
93101
- get
94102
- list
95103
- watch
104+
- apiGroups:
105+
- config.openshift.io
106+
resources:
107+
- infrastructures
108+
verbs:
109+
- get
110+
- list
111+
- watch
96112
- apiGroups:
97113
- coordination.k8s.io
98114
resources:
@@ -123,6 +139,14 @@ rules:
123139
- patch
124140
- update
125141
- watch
142+
- apiGroups:
143+
- ""
144+
resources:
145+
- pods
146+
verbs:
147+
- get
148+
- list
149+
- watch
126150
- apiGroups:
127151
- ""
128152
resourceNames:

pkg/cmd/install/hubaddon/scenario/addon/policy/policy.open-cluster-management.io_policyautomations.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ spec:
5454
job
5555
minLength: 1
5656
type: string
57-
policyViolationContextLimit:
57+
policyViolationsLimit:
5858
description: The maximum number of violating cluster contexts
5959
that will be provided to the Ansible job as extra variables.
60-
When policyViolationContextLimit is set to 0, it means no limit.
61-
The default value is 1000.
60+
When policyViolationsLimit is set to 0, it means no limit. The
61+
default value is 1000.
6262
minimum: 0
6363
type: integer
6464
secret:

pkg/cmd/install/hubaddon/scenario/addon/policy/propagator_clusterrole.yaml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ kind: ClusterRole
44
metadata:
55
name: governance-policy-propagator
66
rules:
7+
- apiGroups:
8+
- '*'
9+
resources:
10+
- '*'
11+
verbs:
12+
- get
13+
- list
14+
- watch
715
- apiGroups:
816
- apps.open-cluster-management.io
917
resources:
@@ -22,6 +30,14 @@ rules:
2230
- get
2331
- list
2432
- watch
33+
- apiGroups:
34+
- config.openshift.io
35+
resourceNames:
36+
- cluster
37+
resources:
38+
- dnses
39+
verbs:
40+
- get
2541
- apiGroups:
2642
- ""
2743
resources:
@@ -52,12 +68,6 @@ rules:
5268
- secrets
5369
verbs:
5470
- create
55-
- delete
56-
- get
57-
- list
58-
- patch
59-
- update
60-
- watch
6171
- apiGroups:
6272
- ""
6373
resourceNames:
@@ -66,6 +76,7 @@ rules:
6676
- secrets
6777
verbs:
6878
- get
79+
- list
6980
- update
7081
- watch
7182
- apiGroups:

0 commit comments

Comments
 (0)