Skip to content

Commit a330c07

Browse files
committed
test: TestPrometheusRemoteWrite: move to Spec.EnableRemoteWriteReceiver from deprecated Spec.EnableFeatures.remote-write-receiver which is removed in prom 3
1 parent 6cd13ed commit a330c07

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/e2e/framework/prometheus.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ func (f Framework) MakePrometheusWithWebTLSRemoteReceive(name, tlsSecretName str
4747
},
4848
Spec: monitoringv1.PrometheusSpec{
4949
CommonPrometheusFields: monitoringv1.CommonPrometheusFields{
50-
Image: image,
51-
Replicas: &replicas,
52-
ServiceAccountName: "prometheus-k8s",
53-
Secrets: []string{tlsSecretName},
54-
EnableFeatures: []monitoringv1.EnableFeature{"remote-write-receiver"},
50+
Image: image,
51+
Replicas: &replicas,
52+
ServiceAccountName: "prometheus-k8s",
53+
Secrets: []string{tlsSecretName},
54+
EnableRemoteWriteReceiver: true,
5555
Web: &monitoringv1.PrometheusWebSpec{
5656
WebConfigFileFields: monitoringv1.WebConfigFileFields{
5757
TLSConfig: &monitoringv1.WebTLSConfig{

test/e2e/prometheus_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ type remoteWriteTest struct {
123123
func TestPrometheusRemoteWrite(t *testing.T) {
124124
ctx := context.Background()
125125

126-
// Get the Prometheus image to use, use the same than k8s's.
126+
// Use the same image than k8s' for the remote write target.
127127
k8sProm, err := f.MonitoringClient.Prometheuses(f.Ns).Get(ctx, "k8s", metav1.GetOptions{})
128128
if err != nil {
129129
t.Fatal(err)

0 commit comments

Comments
 (0)