mirror of
https://github.com/bitnami/charts.git
synced 2026-03-08 08:47:24 +08:00
25 lines
851 B
YAML
25 lines
851 B
YAML
{{- /*
|
|
Copyright VMware, Inc.
|
|
SPDX-License-Identifier: APACHE-2.0
|
|
*/}}
|
|
|
|
{{- if .Values.rbac.create -}}
|
|
kind: ClusterRoleBinding
|
|
apiVersion: {{ include "common.capabilities.rbac.apiVersion" . }}
|
|
metadata:
|
|
name: {{ include "argocd.namespace.server" . }}
|
|
labels: {{- include "common.labels.standard" ( dict "customLabels" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
app.kubernetes.io/component: server
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
roleRef:
|
|
apiGroup: rbac.authorization.k8s.io
|
|
kind: ClusterRole
|
|
name: {{ include "argocd.namespace.server" . }}
|
|
subjects:
|
|
- kind: ServiceAccount
|
|
name: {{ include "argocd.server.serviceAccountName" . }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- end }}
|