Skip to content

Commit

Permalink
fix matchLabel missing in ServiceMonitor template
Browse files Browse the repository at this point in the history
  • Loading branch information
Dave Storey committed Feb 5, 2020
1 parent 00875c7 commit 19f09b7
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 19f09b7

Please sign in to comment.