maabara/manifests/prometheus/templates/rolebinding.yaml

19 lines
577 B
YAML
Raw Normal View History

2024-11-18 18:22:12 +00:00
{{- range include "prometheus.namespaces" . | fromJsonArray }}
---
apiVersion: {{ template "rbac.apiVersion" $ }}
kind: RoleBinding
metadata:
labels:
{{- include "prometheus.server.labels" $ | nindent 4 }}
name: {{ template "prometheus.server.fullname" $ }}
namespace: {{ . }}
subjects:
- kind: ServiceAccount
name: {{ template "prometheus.serviceAccountName.server" $ }}
namespace: {{ include "prometheus.namespace" $ }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ $.Values.server.useExistingClusterRoleName }}
{{ end -}}