blob: 8b642616da0c75c3bdc40ee7a9e3798edd5589df [file] [log] [blame]
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +02001{{- /*
2Copyright VMware, Inc.
3SPDX-License-Identifier: APACHE-2.0
4*/}}
5
6{{- if and .Values.metrics.enabled .Values.metrics.prometheusRule.enabled .Values.metrics.prometheusRule.groups}}
7apiVersion: monitoring.coreos.com/v1
8kind: PrometheusRule
9metadata:
10 name: {{ template "common.names.fullname" . }}
11 namespace: {{ default (include "common.names.namespace" .) .Values.metrics.prometheusRule.namespace }}
Mohammed Naser65cda132024-05-02 14:34:08 -040012 {{- $labels := include "common.tplvalues.merge" ( dict "values" ( list .Values.metrics.prometheusRule.labels .Values.commonLabels ) "context" . ) }}
13 labels: {{- include "common.labels.standard" ( dict "customLabels" $labels "context" $ ) | nindent 4 }}
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +020014 app.kubernetes.io/component: keycloak
Oleksandr Kozachenkob0093492023-09-06 21:43:47 +020015 {{- if .Values.commonAnnotations }}
16 annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
17 {{- end }}
18spec:
19 groups: {{- include "common.tplvalues.render" (dict "value" .Values.metrics.prometheusRule.groups "context" .) | nindent 4 }}
20{{- end }}