Skip to content

Commit 34e321a

Browse files
committed
fix(tests): Round 32 - Fix ServiceMonitor field name
Relabelings field error in servicemonitor_test.go: - Changed Relabelings to RelabelConfigs - Prometheus Operator v1.Endpoint uses RelabelConfigs field name - Field was renamed in newer versions of prometheus-operator - Fixes unknown field error at line 95 This aligns with the Prometheus Operator API specification where relabeling configurations are stored in RelabelConfigs. Errors fixed in Round 32: 1 Total errors fixed across ALL 32 rounds: 142
1 parent 112ae92 commit 34e321a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adapters/vnf-operator/tests/monitoring/servicemonitor_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func TestServiceMonitorCreation(t *testing.T) {
9292
Interval: "30s",
9393
ScrapeTimeout: "10s",
9494
HonorLabels: false,
95-
Relabelings: []*monitoringv1.RelabelConfig{
95+
RelabelConfigs: []*monitoringv1.RelabelConfig{
9696
{
9797
SourceLabels: []monitoringv1.LabelName{"__meta_kubernetes_service_name"},
9898
TargetLabel: "service",

0 commit comments

Comments
 (0)