Skip to content

Commit bb6d1b7

Browse files
authored
Update controller-prometheusrules.yaml (#8902)
As fixed in pull request #7829 for the ServiceMonitor resource, this is also needed for the PrometheusRule. When upgrading the ingress-nginx chart in our environment (via Pulumi) from a really old version to the latest (4.2.0) we noticed it wanted to delete the PrometheusRule resource. This PR should fix that.
1 parent 58f6285 commit bb6d1b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

charts/ingress-nginx/templates/controller-prometheusrules.yaml

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

0 commit comments

Comments
 (0)