diff --git a/src/keycloak/chart/templates/prometheusrule.yaml b/src/keycloak/chart/templates/prometheusrule.yaml index 4c33fe4f3..20ef047ac 100644 --- a/src/keycloak/chart/templates/prometheusrule.yaml +++ b/src/keycloak/chart/templates/prometheusrule.yaml @@ -4,7 +4,7 @@ apiVersion: monitoring.coreos.com/v1 kind: PrometheusRule metadata: name: {{ include "keycloak.fullname" $ }} - namespace: {{ .Release.Namespace }} + namespace: {{ $.Release.Namespace }} {{- with .annotations }} annotations: {{- range $key, $value := . }}