Skip to content

Commit feb5d4a

Browse files
authored
Move operator.observability.prometheus to be beta (open-telemetry#2748)
* Move operator.observability.prometheus to be beta * remove unused entry
1 parent 97434b7 commit feb5d4a

File tree

3 files changed

+3
-9
lines changed

3 files changed

+3
-9
lines changed

.github/workflows/e2e.yaml

-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ jobs:
3434
- e2e-multi-instrumentation
3535
- e2e-metadata-filters
3636
include:
37-
- group: e2e-prometheuscr
38-
setup: "prepare-e2e-with-featuregates FEATUREGATES=+operator.observability.prometheus"
3937
- group: e2e-multi-instrumentation
4038
setup: "add-operator-arg OPERATOR_ARG=--enable-multi-instrumentation prepare-e2e"
4139
- group: e2e-metadata-filters

controllers/builder_test.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@ var (
5252
pathTypePrefix = networkingv1.PathTypePrefix
5353
)
5454

55-
var (
56-
prometheusFeatureGate = featuregate.PrometheusOperatorIsAvailable.ID()
57-
)
58-
5955
var (
6056
opampbridgeSelectorLabels = map[string]string{
6157
"app.kubernetes.io/managed-by": "opentelemetry-operator",
@@ -1951,7 +1947,7 @@ prometheus_cr:
19511947
},
19521948
Spec: monitoringv1.ServiceMonitorSpec{
19531949
Endpoints: []monitoringv1.Endpoint{
1954-
monitoringv1.Endpoint{Port: "targetallocation"},
1950+
{Port: "targetallocation"},
19551951
},
19561952
Selector: v1.LabelSelector{
19571953
MatchLabels: map[string]string{
@@ -1969,7 +1965,7 @@ prometheus_cr:
19691965
},
19701966
},
19711967
wantErr: false,
1972-
featuregates: []string{prometheusFeatureGate},
1968+
featuregates: []string{},
19731969
},
19741970
}
19751971
for _, tt := range tests {

pkg/featuregate/featuregate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ var (
6767
// PrometheusOperatorIsAvailable is the feature gate that enables features associated to the Prometheus Operator.
6868
PrometheusOperatorIsAvailable = featuregate.GlobalRegistry().MustRegister(
6969
"operator.observability.prometheus",
70-
featuregate.StageAlpha,
70+
featuregate.StageBeta,
7171
featuregate.WithRegisterDescription("enables features associated to the Prometheus Operator"),
7272
featuregate.WithRegisterFromVersion("v0.82.0"),
7373
)

0 commit comments

Comments
 (0)