Helm: handle the addressPoolUsage.enabled flag
The flag is available in the values but it is not handled by the charts.
Here we set the thresholds only if the flag is raised.
@@ -52,6 +52,8 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
+
+ {{- if .Values.prometheus.prometheusRule.addressPoolUsage.enabled }}
{{- range .Values.prometheus.prometheusRule.addressPoolUsage.thresholds }}
- alert: MetalLBAddressPoolUsage{{ .percent }}Percent
annotations:
@@ -63,6 +65,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
+ {{- end }}
{{- if .Values.prometheus.prometheusRule.bgpSessionDown.enabled }}
- alert: MetalLBBGPSessionDown
annotations:
