github.com/verrazzano/verrazzano@v1.7.0/platform-operator/thirdparty/charts/keycloak/templates/prometheusrule.yaml (about) 1 {{- with .Values.prometheusRule -}} 2 {{- if .enabled }} 3 apiVersion: monitoring.coreos.com/v1 4 kind: PrometheusRule 5 metadata: 6 name: {{ include "keycloak.fullname" $ }} 7 {{- with .namespace }} 8 namespace: {{ . }} 9 {{- else }} 10 namespace: {{ $.Release.Namespace }} 11 {{- end }} 12 {{- with .annotations }} 13 annotations: 14 {{- range $key, $value := . }} 15 {{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }} 16 {{- end }} 17 {{- end }} 18 labels: 19 {{- include "keycloak.labels" $ | nindent 4 }} 20 {{- range $key, $value := .labels }} 21 {{- printf "%s: %s" $key (tpl $value $ | quote) | nindent 4 }} 22 {{- end }} 23 spec: 24 groups: 25 - name: {{ include "keycloak.fullname" $ }} 26 rules: 27 {{- toYaml .rules | nindent 8 }} 28 {{- end }} 29 {{- end -}}