You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(helm): address review comments on metrics ServiceMonitor
- Gate ServiceMonitor on Capabilities.APIVersions to avoid install failures
on clusters without Prometheus Operator CRDs
- Add scheme/tlsConfig to ServiceMonitor endpoint when secure=true
- Document secure default and NodePort exposure in values.yaml
Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
Copy file name to clipboardExpand all lines: helm/kagent/templates/controller-servicemonitor.yaml
+6-1Lines changed: 6 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.serviceMonitor.enabled }}
1
+
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.serviceMonitor.enabled (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1/ServiceMonitor") }}
0 commit comments