Skip to content

Commit c11cd05

Browse files
kabicinkabicin
authored andcommitted
Add endpoints permissions
1 parent 3b206a7 commit c11cd05

File tree

9 files changed

+65
-0
lines changed

9 files changed

+65
-0
lines changed

bundle/manifests/runtime-component.clusterserviceversion.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,14 @@ spec:
12281228
- list
12291229
- update
12301230
- watch
1231+
- apiGroups:
1232+
- ""
1233+
resources:
1234+
- endpoints
1235+
verbs:
1236+
- get
1237+
- list
1238+
- watch
12311239
- apiGroups:
12321240
- ""
12331241
resources:

config/rbac/role.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,14 @@ rules:
6161
- list
6262
- update
6363
- watch
64+
- apiGroups:
65+
- ""
66+
resources:
67+
- endpoints
68+
verbs:
69+
- get
70+
- list
71+
- watch
6472
- apiGroups:
6573
- ""
6674
resources:

internal/controller/runtimecomponent_controller.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ type RuntimeComponentReconciler struct {
7171
// +kubebuilder:rbac:groups=apps,resources=deployments;statefulsets,verbs=get;list;watch;create;update;delete,namespace=runtime-component-operator
7272
// +kubebuilder:rbac:groups=apps,resources=deployments/finalizers;statefulsets,verbs=update,namespace=runtime-component-operator
7373
// +kubebuilder:rbac:groups=core,resources=services;secrets;serviceaccounts;configmaps,verbs=get;list;watch;create;update;delete,namespace=runtime-component-operator
74+
// +kubebuilder:rbac:groups=core,resources=endpoints,verbs=get;list;watch,namespace=runtime-component-operator
7475
// +kubebuilder:rbac:groups=autoscaling,resources=horizontalpodautoscalers,verbs=get;list;watch;create;update;delete,namespace=runtime-component-operator
7576
// +kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses;networkpolicies,verbs=get;list;watch;create;update;delete,namespace=runtime-component-operator
7677
// +kubebuilder:rbac:groups=route.openshift.io,resources=routes;routes/custom-host,verbs=get;list;watch;create;update;delete,namespace=runtime-component-operator

internal/deploy/kubectl/runtime-component-operator.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,14 @@ rules:
118118
- list
119119
- update
120120
- watch
121+
- apiGroups:
122+
- ""
123+
resources:
124+
- endpoints
125+
verbs:
126+
- get
127+
- list
128+
- watch
121129
- apiGroups:
122130
- ""
123131
resources:

internal/deploy/kubectl/runtime-component-rbac-watch-all.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ rules:
110110
- list
111111
- update
112112
- watch
113+
- apiGroups:
114+
- ""
115+
resources:
116+
- endpoints
117+
verbs:
118+
- get
119+
- list
120+
- watch
113121
- apiGroups:
114122
- ""
115123
resources:

internal/deploy/kubectl/runtime-component-rbac-watch-another.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ rules:
112112
- list
113113
- update
114114
- watch
115+
- apiGroups:
116+
- ""
117+
resources:
118+
- endpoints
119+
verbs:
120+
- get
121+
- list
122+
- watch
115123
- apiGroups:
116124
- ""
117125
resources:

internal/deploy/kustomize/daily/base/runtime-component-roles.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,14 @@ rules:
121121
- list
122122
- update
123123
- watch
124+
- apiGroups:
125+
- ""
126+
resources:
127+
- endpoints
128+
verbs:
129+
- get
130+
- list
131+
- watch
124132
- apiGroups:
125133
- ""
126134
resources:

internal/deploy/kustomize/daily/overlays/watch-all-namespaces/cluster-roles.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,14 @@ rules:
110110
- list
111111
- update
112112
- watch
113+
- apiGroups:
114+
- ""
115+
resources:
116+
- endpoints
117+
verbs:
118+
- get
119+
- list
120+
- watch
113121
- apiGroups:
114122
- ""
115123
resources:

internal/deploy/kustomize/daily/overlays/watch-another-namespace/rco-watched-ns/watched-roles.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,14 @@ rules:
112112
- list
113113
- update
114114
- watch
115+
- apiGroups:
116+
- ""
117+
resources:
118+
- endpoints
119+
verbs:
120+
- get
121+
- list
122+
- watch
115123
- apiGroups:
116124
- ""
117125
resources:

0 commit comments

Comments
 (0)