Skip to content

Commit

Permalink
Add condition for monitoring.coreos.com/v1 API (kubernetes#8770)
Browse files Browse the repository at this point in the history
  • Loading branch information
smbambling authored and rchshld committed May 17, 2023
1 parent f502588 commit ca42be6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{{- if and .Values.controller.metrics.enabled .Values.controller.metrics.prometheusRule.enabled -}}
{{- if and ( .Values.controller.metrics.enabled ) ( .Values.controller.metrics.prometheusRule.enabled ) ( .Capabilities.APIVersions.Has "monitoring.coreos.com/v1" ) -}}
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
Expand Down

0 comments on commit ca42be6

Please sign in to comment.