Skip to content

Commit ef1c530

Browse files
authored
Merge branch 'main' into fix-ta-tlsconfig-scrapeconfig
2 parents f7130b5 + 87efe27 commit ef1c530

18 files changed

+161
-68
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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. collector, target allocator, auto-instrumentation, opamp, 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: Remove invalid `operator.observability.prometheus` feature flag references
9+
10+
# One or more tracking issues related to the change
11+
issues: [4159]
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: |
17+
Fixed operator installation failure caused by references to the non-existent `operator.observability.prometheus` feature flag.
18+
Removed the flag from the bundle and cleaned up API and documentation references.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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
5+
component: collector
6+
7+
# A brief description of the change
8+
note: "Fix the headless service name in StatefulSet mode to ensure consistent DNS resolution. The ServiceName field in the OpenTelemetryCollector spec can be used to customize the StatefulSet's serviceName."
9+
10+
# One or more tracking issues related to the change
11+
issues: [4029]
12+
13+
# Optional additional information
14+
subtext: |
15+
The ServiceName field in the OpenTelemetryCollector
16+
spec can be used to customize the StatefulSet's serviceName if needed, while maintaining
17+
the default behavior of using the headless service name.

apis/v1alpha1/opentelemetrycollector_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,11 @@ type OpenTelemetryCollectorSpec struct {
234234
// +optional
235235
InitContainers []v1.Container `json:"initContainers,omitempty"`
236236

237+
// ServiceName is the name of the Service to be used.
238+
// If not specified, it will default to "<name>-headless".
239+
// +optional
240+
ServiceName string `json:"serviceName,omitempty"`
241+
237242
// AdditionalContainers allows injecting additional containers into the Collector's pod definition.
238243
// These sidecar containers can be used for authentication proxies, log shipping sidecars, agents for shipping
239244
// metrics to their cloud, or in general sidecars that do not support automatic injection. This option only
@@ -517,7 +522,6 @@ type PodDisruptionBudgetSpec struct {
517522
// MetricsConfigSpec defines a metrics config.
518523
type MetricsConfigSpec struct {
519524
// EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar mode) should be created for the service managed by the OpenTelemetry Operator.
520-
// The operator.observability.prometheus feature gate must be enabled to use this feature.
521525
//
522526
// +optional
523527
// +kubebuilder:validation:Optional

apis/v1beta1/opentelemetrycollector_types.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,11 @@ type OpenTelemetryCollectorSpec struct {
135135
// This is only applicable to Deployment mode.
136136
// +optional
137137
DeploymentUpdateStrategy appsv1.DeploymentStrategy `json:"deploymentUpdateStrategy,omitempty"`
138+
139+
// ServiceName is the name of the Service to be used.
140+
// If not specified, it will default to "<name>-headless".
141+
// +optional
142+
ServiceName string `json:"serviceName,omitempty"`
138143
}
139144

140145
// TargetAllocatorEmbedded defines the configuration for the Prometheus target allocator, embedded in the
@@ -275,7 +280,6 @@ type ObservabilitySpec struct {
275280
// MetricsConfigSpec defines a metrics config.
276281
type MetricsConfigSpec struct {
277282
// EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar mode) should be created for the service managed by the OpenTelemetry Operator.
278-
// The operator.observability.prometheus feature gate must be enabled to use this feature.
279283
//
280284
// +optional
281285
// +kubebuilder:validation:Optional

bundle/community/manifests/opentelemetry-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ metadata:
9999
categories: Logging & Tracing,Monitoring
100100
certified: "false"
101101
containerImage: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
102-
createdAt: "2025-06-13T16:39:59Z"
102+
createdAt: "2025-06-23T18:50:20Z"
103103
description: Provides the OpenTelemetry components, including the Collector
104104
operators.operatorframework.io/builder: operator-sdk-v1.29.0
105105
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
@@ -174,8 +174,6 @@ spec:
174174
path: observability.metrics
175175
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
176176
mode) should be created for the service managed by the OpenTelemetry Operator.
177-
The operator.observability.prometheus feature gate must be enabled to use
178-
this feature.
179177
displayName: Create ServiceMonitors for OpenTelemetry Collector
180178
path: observability.metrics.enableMetrics
181179
- description: ObservabilitySpec defines how telemetry data gets handled.
@@ -186,8 +184,6 @@ spec:
186184
path: targetAllocator.observability.metrics
187185
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
188186
mode) should be created for the service managed by the OpenTelemetry Operator.
189-
The operator.observability.prometheus feature gate must be enabled to use
190-
this feature.
191187
displayName: Create ServiceMonitors for OpenTelemetry Collector
192188
path: targetAllocator.observability.metrics.enableMetrics
193189
version: v1alpha1
@@ -224,8 +220,6 @@ spec:
224220
path: observability.metrics
225221
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
226222
mode) should be created for the service managed by the OpenTelemetry Operator.
227-
The operator.observability.prometheus feature gate must be enabled to use
228-
this feature.
229223
displayName: Create ServiceMonitors for OpenTelemetry Collector
230224
path: observability.metrics.enableMetrics
231225
- description: ObservabilitySpec defines how telemetry data gets handled.
@@ -236,8 +230,6 @@ spec:
236230
path: targetAllocator.observability.metrics
237231
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
238232
mode) should be created for the service managed by the OpenTelemetry Operator.
239-
The operator.observability.prometheus feature gate must be enabled to use
240-
this feature.
241233
displayName: Create ServiceMonitors for OpenTelemetry Collector
242234
path: targetAllocator.observability.metrics.enableMetrics
243235
version: v1beta1
@@ -276,14 +268,10 @@ spec:
276268
path: observability.metrics
277269
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
278270
mode) should be created for the service managed by the OpenTelemetry Operator.
279-
The operator.observability.prometheus feature gate must be enabled to use
280-
this feature.
281271
displayName: Create ServiceMonitors for OpenTelemetry Collector
282272
path: observability.metrics.enableMetrics
283273
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
284274
mode) should be created for the service managed by the OpenTelemetry Operator.
285-
The operator.observability.prometheus feature gate must be enabled to use
286-
this feature.
287275
displayName: Create ServiceMonitors for OpenTelemetry Collector
288276
path: observability.metrics.enableMetrics
289277
version: v1alpha1

bundle/community/manifests/opentelemetry.io_opentelemetrycollectors.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,6 +2598,8 @@ spec:
25982598
type: object
25992599
serviceAccount:
26002600
type: string
2601+
serviceName:
2602+
type: string
26012603
shareProcessNamespace:
26022604
type: boolean
26032605
targetAllocator:
@@ -7257,6 +7259,8 @@ spec:
72577259
type: object
72587260
serviceAccount:
72597261
type: string
7262+
serviceName:
7263+
type: string
72607264
shareProcessNamespace:
72617265
type: boolean
72627266
targetAllocator:

bundle/openshift/manifests/opentelemetry-operator.clusterserviceversion.yaml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ metadata:
9999
categories: Logging & Tracing,Monitoring
100100
certified: "false"
101101
containerImage: ghcr.io/open-telemetry/opentelemetry-operator/opentelemetry-operator
102-
createdAt: "2025-06-13T16:39:59Z"
102+
createdAt: "2025-06-23T18:50:22Z"
103103
description: Provides the OpenTelemetry components, including the Collector
104104
operators.operatorframework.io/builder: operator-sdk-v1.29.0
105105
operators.operatorframework.io/project_layout: go.kubebuilder.io/v3
@@ -174,8 +174,6 @@ spec:
174174
path: observability.metrics
175175
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
176176
mode) should be created for the service managed by the OpenTelemetry Operator.
177-
The operator.observability.prometheus feature gate must be enabled to use
178-
this feature.
179177
displayName: Create ServiceMonitors for OpenTelemetry Collector
180178
path: observability.metrics.enableMetrics
181179
- description: ObservabilitySpec defines how telemetry data gets handled.
@@ -186,8 +184,6 @@ spec:
186184
path: targetAllocator.observability.metrics
187185
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
188186
mode) should be created for the service managed by the OpenTelemetry Operator.
189-
The operator.observability.prometheus feature gate must be enabled to use
190-
this feature.
191187
displayName: Create ServiceMonitors for OpenTelemetry Collector
192188
path: targetAllocator.observability.metrics.enableMetrics
193189
version: v1alpha1
@@ -224,8 +220,6 @@ spec:
224220
path: observability.metrics
225221
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
226222
mode) should be created for the service managed by the OpenTelemetry Operator.
227-
The operator.observability.prometheus feature gate must be enabled to use
228-
this feature.
229223
displayName: Create ServiceMonitors for OpenTelemetry Collector
230224
path: observability.metrics.enableMetrics
231225
- description: ObservabilitySpec defines how telemetry data gets handled.
@@ -236,8 +230,6 @@ spec:
236230
path: targetAllocator.observability.metrics
237231
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
238232
mode) should be created for the service managed by the OpenTelemetry Operator.
239-
The operator.observability.prometheus feature gate must be enabled to use
240-
this feature.
241233
displayName: Create ServiceMonitors for OpenTelemetry Collector
242234
path: targetAllocator.observability.metrics.enableMetrics
243235
version: v1beta1
@@ -276,14 +268,10 @@ spec:
276268
path: observability.metrics
277269
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
278270
mode) should be created for the service managed by the OpenTelemetry Operator.
279-
The operator.observability.prometheus feature gate must be enabled to use
280-
this feature.
281271
displayName: Create ServiceMonitors for OpenTelemetry Collector
282272
path: observability.metrics.enableMetrics
283273
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
284274
mode) should be created for the service managed by the OpenTelemetry Operator.
285-
The operator.observability.prometheus feature gate must be enabled to use
286-
this feature.
287275
displayName: Create ServiceMonitors for OpenTelemetry Collector
288276
path: observability.metrics.enableMetrics
289277
version: v1alpha1
@@ -527,7 +515,6 @@ spec:
527515
- --enable-nginx-instrumentation=true
528516
- --enable-go-instrumentation=true
529517
- --openshift-create-dashboard=true
530-
- --feature-gates=+operator.observability.prometheus
531518
- --enable-cr-metrics=true
532519
- --create-sm-operator-metrics=true
533520
env:

bundle/openshift/manifests/opentelemetry.io_opentelemetrycollectors.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2598,6 +2598,8 @@ spec:
25982598
type: object
25992599
serviceAccount:
26002600
type: string
2601+
serviceName:
2602+
type: string
26012603
shareProcessNamespace:
26022604
type: boolean
26032605
targetAllocator:
@@ -7257,6 +7259,8 @@ spec:
72577259
type: object
72587260
serviceAccount:
72597261
type: string
7262+
serviceName:
7263+
type: string
72607264
shareProcessNamespace:
72617265
type: boolean
72627266
targetAllocator:

config/crd/bases/opentelemetry.io_opentelemetrycollectors.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2584,6 +2584,8 @@ spec:
25842584
type: object
25852585
serviceAccount:
25862586
type: string
2587+
serviceName:
2588+
type: string
25872589
shareProcessNamespace:
25882590
type: boolean
25892591
targetAllocator:
@@ -7243,6 +7245,8 @@ spec:
72437245
type: object
72447246
serviceAccount:
72457247
type: string
7248+
serviceName:
7249+
type: string
72467250
shareProcessNamespace:
72477251
type: boolean
72487252
targetAllocator:

config/manifests/community/bases/opentelemetry-operator.clusterserviceversion.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,6 @@ spec:
5656
path: observability.metrics
5757
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
5858
mode) should be created for the service managed by the OpenTelemetry Operator.
59-
The operator.observability.prometheus feature gate must be enabled to use
60-
this feature.
6159
displayName: Create ServiceMonitors for OpenTelemetry Collector
6260
path: observability.metrics.enableMetrics
6361
- description: ObservabilitySpec defines how telemetry data gets handled.
@@ -68,8 +66,6 @@ spec:
6866
path: targetAllocator.observability.metrics
6967
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
7068
mode) should be created for the service managed by the OpenTelemetry Operator.
71-
The operator.observability.prometheus feature gate must be enabled to use
72-
this feature.
7369
displayName: Create ServiceMonitors for OpenTelemetry Collector
7470
path: targetAllocator.observability.metrics.enableMetrics
7571
version: v1beta1
@@ -136,8 +132,6 @@ spec:
136132
path: observability.metrics
137133
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
138134
mode) should be created for the service managed by the OpenTelemetry Operator.
139-
The operator.observability.prometheus feature gate must be enabled to use
140-
this feature.
141135
displayName: Create ServiceMonitors for OpenTelemetry Collector
142136
path: observability.metrics.enableMetrics
143137
- description: ObservabilitySpec defines how telemetry data gets handled.
@@ -148,8 +142,6 @@ spec:
148142
path: targetAllocator.observability.metrics
149143
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
150144
mode) should be created for the service managed by the OpenTelemetry Operator.
151-
The operator.observability.prometheus feature gate must be enabled to use
152-
this feature.
153145
displayName: Create ServiceMonitors for OpenTelemetry Collector
154146
path: targetAllocator.observability.metrics.enableMetrics
155147
version: v1alpha1
@@ -188,14 +180,10 @@ spec:
188180
path: observability.metrics
189181
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
190182
mode) should be created for the service managed by the OpenTelemetry Operator.
191-
The operator.observability.prometheus feature gate must be enabled to use
192-
this feature.
193183
displayName: Create ServiceMonitors for OpenTelemetry Collector
194184
path: observability.metrics.enableMetrics
195185
- description: EnableMetrics specifies if ServiceMonitor or PodMonitor(for sidecar
196186
mode) should be created for the service managed by the OpenTelemetry Operator.
197-
The operator.observability.prometheus feature gate must be enabled to use
198-
this feature.
199187
displayName: Create ServiceMonitors for OpenTelemetry Collector
200188
path: observability.metrics.enableMetrics
201189
version: v1alpha1

0 commit comments

Comments
 (0)