argocd-helm/charts/argo-cd/templates/argocd-application-controller/clusterrolebinding.yaml
Marco Kilchhofer 3b0ebdda66
refactor(argo-cd): Use templating for labels (#627)
Signed-off-by: Marco Kilchhofer <mkilchhofer@users.noreply.github.com>
2021-03-22 16:15:37 -04:00

16 lines
No EOL
598 B
YAML

{{- if .Values.controller.clusterAdminAccess.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: {{ template "argo-cd.controller.fullname" . }}
labels:
{{- include "argo-cd.labels" (dict "context" . "component" .Values.controller.name "name" .Values.controller.name) | nindent 4 }}
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: {{ template "argo-cd.controller.fullname" . }}
subjects:
- kind: ServiceAccount
name: {{ template "argo-cd.controllerServiceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}