Make clusterrole & clusterrolebinding optional for argocd-server

This commit is contained in:
Tuan Nguyen 2020-02-12 18:49:08 +08:00
parent 9dd063c62f
commit 5e3e0df558
3 changed files with 11 additions and 2 deletions

View file

@ -1,3 +1,4 @@
{{- if .Values.server.clusterAdminAccess.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
@ -31,3 +32,4 @@ rules:
- pods/log
verbs:
- get
{{- end }}

View file

@ -1,3 +1,4 @@
{{- if .Values.server.clusterAdminAccess.enabled }}
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
@ -17,3 +18,4 @@ subjects:
- kind: ServiceAccount
name: {{ template "argo-cd.serverServiceAccountName" . }}
namespace: {{ .Release.Namespace }}
{{- end }}

View file

@ -507,6 +507,11 @@ server:
# orphanedResources: {}
# roles: []
## Enable Admin ClusterRole resources.
## Enable if you would like to grant rights to ArgoCD to deploy to the local kuberentes cluster.
clusterAdminAccess:
enabled: true
## Repo Server
repoServer:
name: repo-server