Collectd operator utilties
[demo.git] / vnfs / DAaaS / deploy / operator / charts / prometheus-operator / templates / prometheus / additionalPrometheusRules.yaml
1 {{- if .Values.additionalPrometheusRules }}
2 apiVersion: v1
3 kind: List
4 items:
5 {{- range .Values.additionalPrometheusRules }}
6   - apiVersion: {{ printf "%s/v1" ($.Values.prometheusOperator.crdApiGroup | default "monitoring.coreos.com") }}
7     kind: PrometheusRule
8     metadata:
9       name: {{ template "prometheus-operator.name" $ }}-{{ .name }}
10       labels:
11         app: {{ template "prometheus-operator.name" $ }}
12 {{ include "prometheus-operator.labels" $ | indent 8 }}
13     {{- if .additionalLabels }}
14 {{ toYaml .additionalLabels | indent 8 }}
15     {{- end }}
16     spec:
17       groups:
18 {{ toYaml .groups| indent 8 }}
19 {{- end }}
20 {{- end }}