{{- $values := .Values }}
{{- if $values.alerts.enabled }}
{{- range $target := list "kubernetes" "openstack" }}
{{- range $path, $bytes := $.Files.Glob (printf "alerts/%s/*.alerts" $target) }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule

metadata:
  name: {{ printf "%s" $path | replace "/" "-" }}
  labels:
    app: keystone
    tier: os
    type: alerting-rules
    prometheus: {{ $target }}
    absent-metrics-operator/disable: "true"
spec:
{{ printf "%s" $bytes | indent 2 }}

{{- end }}
{{- end }}
{{- end }}

{{- $values := .Values }}
{{- if $values.alerts.enabled }}
{{- range $target := list "kubernetes" "openstack" }}
{{- range $path, $bytes := $.Files.Glob (printf "alerts/%s/*.alerts" $target) }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule

metadata:
  name: {{ printf "%s" $path | replace "/" "-" }}
  labels:
    app: keystone
    tier: os
    type: alerting-rules
    prometheus: {{ $target }}

spec:
{{ printf "%s" $bytes | indent 2 }}

{{- end }}
{{- end }}
{{- end }}

Revert "[Keystone] add absent-metrics-operator/disable: "true" to PrometheusRule"
Revert "[Keystone] add absent-metrics-operator/disable: "true" to PrometheusRule"

This reverts commit a86f87cda7d5521feee7e3af8d9add8161328443.

We will silence the blackbox alerts in ap-sa-2 instead.
