Skip to content

Commit 0bdaa9e

Browse files
authored
[bug_fix] Missing resource from OpenShift Routes prevents them to be deployed in OpenShift clusters (open-telemetry#1337)
* Add missing resource for OpenShift routes Signed-off-by: Israel Blancas <[email protected]> * Add missing file Signed-off-by: Israel Blancas <[email protected]> * Add missing changelog file Signed-off-by: Israel Blancas <[email protected]> Signed-off-by: Israel Blancas <[email protected]>
1 parent ba24a19 commit 0bdaa9e

File tree

4 files changed

+19
-1
lines changed

4 files changed

+19
-1
lines changed
+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
2+
change_type: bug_fix
3+
4+
# The name of the component, or a single word describing the area of concern, (e.g. operator, target allocator, github action)
5+
component: operator
6+
7+
# A brief description of the change. Surround your text with quotes ("") if it needs to start with a backtick (`).
8+
note: "There was a missing resource in the OpenShift routes ClusterBinding"
9+
10+
# One or more tracking issues related to the change
11+
issues: [1337]
12+
13+
# (Optional) One or more lines of additional information to render under the primary note.
14+
# These lines will be padded with 2 spaces and then inserted directly into the document.
15+
# Use pipe (|) for multiline entries.
16+
subtext:

bundle/manifests/opentelemetry-operator.clusterserviceversion.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ spec:
261261
- route.openshift.io
262262
resources:
263263
- routes
264+
- routes/custom-host
264265
verbs:
265266
- create
266267
- delete

config/rbac/role.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ rules:
172172
- route.openshift.io
173173
resources:
174174
- routes
175+
- routes/custom-host
175176
verbs:
176177
- create
177178
- delete

controllers/opentelemetrycollector_controller.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ func NewReconciler(p Params) *OpenTelemetryCollectorReconciler {
181181
// +kubebuilder:rbac:groups=opentelemetry.io,resources=opentelemetrycollectors/status,verbs=get;update;patch
182182
// +kubebuilder:rbac:groups=opentelemetry.io,resources=opentelemetrycollectors/finalizers,verbs=get;update;patch
183183
// +kubebuilder:rbac:groups=networking.k8s.io,resources=ingresses,verbs=get;list;watch;create;update;patch;delete
184-
// +kubebuilder:rbac:groups=route.openshift.io,resources=routes,verbs=get;list;watch;create;update;patch;delete
184+
// +kubebuilder:rbac:groups=route.openshift.io,resources=routes;routes/custom-host,verbs=get;list;watch;create;update;patch;delete
185185
// +kubebuilder:rbac:groups=coordination.k8s.io,resources=leases,verbs=get;list;create;update
186186
// +kubebuilder:rbac:groups="",resources=events,verbs=create;patch
187187

0 commit comments

Comments
 (0)