Skip to content

Commit f2ebe36

Browse files
authored
Merge pull request #1353 from storey247/ds/1352-fix-servicemonitor-template
fix matchLabel missing in ServiceMonitor template
2 parents 00875c7 + 6e1ddab commit f2ebe36

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

pkg/scaffold/v2/prometheus/monitor.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,6 @@ spec:
5252
- path: /metrics
5353
port: https
5454
selector:
55-
control-plane: controller-manager
55+
matchLabels:
56+
control-plane: controller-manager
5657
`

testdata/project-v2-multigroup/config/prometheus/monitor.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ spec:
1212
- path: /metrics
1313
port: https
1414
selector:
15-
control-plane: controller-manager
15+
matchLabels:
16+
control-plane: controller-manager

testdata/project-v2/config/prometheus/monitor.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ spec:
1212
- path: /metrics
1313
port: https
1414
selector:
15-
control-plane: controller-manager
15+
matchLabels:
16+
control-plane: controller-manager

0 commit comments

Comments
 (0)