1 {{- if and .Values.server.enabled .Values.rbac.create -}}
2 apiVersion: rbac.authorization.k8s.io/v1
6 {{- include "prometheus.server.labels" . | nindent 4 }}
7 name: {{ template "prometheus.server.fullname" . }}
9 {{- if .Values.podSecurityPolicy.enabled }}
17 - {{ template "prometheus.server.fullname" . }}