Skip to content

Commit 3c7eed1

Browse files
committed
Move operator.observability.prometheus to be beta
1 parent 2409359 commit 3c7eed1

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.github/workflows/e2e.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
- e2e-metadata-filters
3636
include:
3737
- group: e2e-prometheuscr
38-
setup: "prepare-e2e-with-featuregates FEATUREGATES=+operator.observability.prometheus"
38+
setup: "prepare-e2e-with-featuregates"
3939
- group: e2e-multi-instrumentation
4040
setup: "add-operator-arg OPERATOR_ARG=--enable-multi-instrumentation prepare-e2e"
4141
- 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",
@@ -1946,7 +1942,7 @@ prometheus_cr:
19461942
},
19471943
Spec: monitoringv1.ServiceMonitorSpec{
19481944
Endpoints: []monitoringv1.Endpoint{
1949-
monitoringv1.Endpoint{Port: "targetallocation"},
1945+
{Port: "targetallocation"},
19501946
},
19511947
Selector: v1.LabelSelector{
19521948
MatchLabels: map[string]string{
@@ -1964,7 +1960,7 @@ prometheus_cr:
19641960
},
19651961
},
19661962
wantErr: false,
1967-
featuregates: []string{prometheusFeatureGate},
1963+
featuregates: []string{},
19681964
},
19691965
}
19701966
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)