Skip to content

Commit 0eff064

Browse files
splichyjmdeal
authored andcommitted
chore: helm - add servicemonitor api condition (aws#7695)
Co-authored-by: Jason Deal <[email protected]>
1 parent e8d3679 commit 0eff064

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/karpenter/templates/servicemonitor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if.Values.serviceMonitor.enabled -}}
1+
{{- if and .Values.serviceMonitor.enabled (.Capabilities.APIVersions.Has "monitoring.coreos.com/v1") -}}
22
apiVersion: monitoring.coreos.com/v1
33
kind: ServiceMonitor
44
metadata:

0 commit comments

Comments
 (0)