{{- $values := .Values }}
{{- range $path, $bytes := .Files.Glob "aggregations/*.rules" }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule

metadata:
  name: {{ printf "maia-rules-%s" $path | replace "/" "-" }}
  labels:
    type: aggregation-rules
    prometheus: {{ required ".Values.prometheusName missing" $values.prometheusName | quote }}

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

{{- end }}

{{- $values := .Values }}
{{- range $path, $bytes := .Files.Glob "aggregations/*.rules" }}
---
apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule

metadata:
  name: {{ printf "maia-rules-%s" $path | replace "/" "-" }}
  labels:
    type: alerting-rules
    prometheus: {{ required ".Values.prometheusName missing" $values.prometheusName | quote }}

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

{{- end }}

Revert "[maia] these are aggregation rules"
Revert "[maia] these are aggregation rules"

This reverts commit 1a5a95856882112b04145bab08056eca0b70444b.
