polardbxoperator/charts/polardbx-monitor/templates/prometheus-operator-cluster...

23 lines
700 B
YAML

{{/*
Create the cluster role of prometheus operator to use
*/}}
{{- if .Values.monitors.prometheusOperator.rbac.create -}}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
labels:
app.kubernetes.io/component: controller
app.kubernetes.io/name: prometheus-operator
app.kubernetes.io/version: v0.44.1
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
name: polardbx-prometheus-operator
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: polardbx-prometheus-operator
subjects:
- kind: ServiceAccount
name: prometheus-operator
namespace: {{ .Release.Namespace }}
{{- end -}}