Skip to content

Commit

Permalink
Merge pull request #1353 from storey247/ds/1352-fix-servicemonitor-te…
Browse files Browse the repository at this point in the history
…mplate

fix matchLabel missing in ServiceMonitor template
  • Loading branch information
k8s-ci-robot committed Feb 5, 2020
2 parents 00875c7 + 6e1ddab commit f2ebe36
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pkg/scaffold/v2/prometheus/monitor.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,6 @@ spec:
- path: /metrics
port: https
selector:
control-plane: controller-manager
matchLabels:
control-plane: controller-manager
`
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ spec:
- path: /metrics
port: https
selector:
control-plane: controller-manager
matchLabels:
control-plane: controller-manager
3 changes: 2 additions & 1 deletion testdata/project-v2/config/prometheus/monitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,5 @@ spec:
- path: /metrics
port: https
selector:
control-plane: controller-manager
matchLabels:
control-plane: controller-manager

0 comments on commit f2ebe36

Please sign in to comment.