Skip to content

Commit d20610b

Browse files
committed
fix(helm): add nil check for prometheusRule in template
1 parent f2e75dc commit d20610b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

helm/node-doctor/templates/prometheusrule.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- if .Values.prometheusRule.enabled }}
1+
{{- if and .Values.prometheusRule .Values.prometheusRule.enabled }}
22
apiVersion: monitoring.coreos.com/v1
33
kind: PrometheusRule
44
metadata:

0 commit comments

Comments
 (0)