Skip to content

Commit 72dfd92

Browse files
committed
fix(helm): grant routes/custom-host for service ingress reconciliation
OpenShift route admission requires the routes/custom-host subresource permission to set spec.host on a Route; the service ingress rules only granted routes. Without the subresource the reconciler's creates are rejected with 'you do not have permission to set the host field of the route'. Verified on a live OpenShift cluster: with the subresource granted, the reconciler creates and owns exact-host Routes for exposed services. Signed-off-by: Jesse Jaggars <jjaggars@redhat.com>
1 parent f9e45dd commit 72dfd92

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎deploy/helm/openshell/templates/clusterrole.yaml‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,16 @@ rules:
153153
- list
154154
- create
155155
- delete
156+
# Setting a custom spec.host on an OpenShift Route requires the
157+
# custom-host subresource in addition to routes themselves.
158+
- apiGroups:
159+
- route.openshift.io
160+
resources:
161+
- routes/custom-host
162+
verbs:
163+
- create
164+
- patch
165+
- update
156166
- apiGroups:
157167
- gateway.networking.k8s.io
158168
resources:

0 commit comments

Comments
 (0)