Skip to content

Commit b38eb5c

Browse files
committed
Add endpoints permissions
1 parent ed6b2cd commit b38eb5c

File tree

9 files changed

+66
-1
lines changed

9 files changed

+66
-1
lines changed

bundle/manifests/runtime-component.clusterserviceversion.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ metadata:
7171
categories: Application Runtime
7272
certified: "true"
7373
containerImage: icr.io/appcafe/runtime-component-operator:daily
74-
createdAt: "2025-06-06T19:54:48Z"
74+
createdAt: "2025-06-06T21:13:00Z"
7575
description: Deploys any runtime component with dynamic and auto-tuning configuration
7676
features.operators.openshift.io/disconnected: "true"
7777
features.operators.openshift.io/fips-compliant: "true"
@@ -1213,6 +1213,14 @@ spec:
12131213
- list
12141214
- update
12151215
- watch
1216+
- apiGroups:
1217+
- ""
1218+
resources:
1219+
- endpoints
1220+
verbs:
1221+
- get
1222+
- list
1223+
- watch
12161224
- apiGroups:
12171225
- ""
12181226
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)