Skip to content

Commit

Permalink
Add mandatory endpoints field
Browse files Browse the repository at this point in the history
  Fixes: error validating "": error validating data:
ValidationError(ServiceMonitor.spec): missing required field
"endpoints" in com.coreos.monitoring.v1.ServiceMonitor.spec

Signed-off-by: Dinar Valeev <k0da@opensuse.org>
  • Loading branch information
k0da committed Nov 9, 2023
1 parent c2484ea commit 8132763
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions chart/k8gb/templates/servicemonitor.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ metadata:
labels:
{{- include "chart.labels" . | nindent 4 }}
spec:
endpoints:
- port: metrics
selector:
matchLabels:
{{- include "chart.selectorLabels" . | nindent 6 }}
Expand Down

0 comments on commit 8132763

Please sign in to comment.