fix(argo-workflows): serviceaccount rbac when sso is enabled (#1586)

Signed-off-by: Nick Fisher <nxf5025@gmail.com>

Signed-off-by: Nick Fisher <nxf5025@gmail.com>
This commit is contained in:
Nick Fisher 2022-10-26 21:04:37 -04:00 committed by GitHub
parent aa669028b8
commit 55b8b34d20
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 9 deletions

View file

@ -3,7 +3,7 @@ appVersion: v3.4.2
name: argo-workflows name: argo-workflows
description: A Helm chart for Argo Workflows description: A Helm chart for Argo Workflows
type: application type: application
version: 0.20.4 version: 0.20.5
icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png icon: https://raw.githubusercontent.com/argoproj/argo-workflows/master/docs/assets/argo.png
home: https://github.com/argoproj/argo-helm home: https://github.com/argoproj/argo-helm
sources: sources:
@ -13,4 +13,4 @@ maintainers:
url: https://argoproj.github.io/ url: https://argoproj.github.io/
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- "[Changed]: Enable to set different imagePullPolicy for mainContainer and executor" - "[Fixed]: Removed invalid rbac block from configmap"

View file

@ -131,10 +131,6 @@ data:
name: {{ .clientSecret.name }} name: {{ .clientSecret.name }}
key: {{ .clientSecret.key }} key: {{ .clientSecret.key }}
redirectUrl: {{ .redirectUrl }} redirectUrl: {{ .redirectUrl }}
{{- with .rbac }}
rbac:
enabled: {{ .enabled }}
{{- end }}
{{- if .scopes }} {{- if .scopes }}
scopes: {{ toYaml .scopes | nindent 8 }} scopes: {{ toYaml .scopes | nindent 8 }}
{{- end }} {{- end }}

View file

@ -30,7 +30,7 @@ rules:
- list - list
- watch - watch
- delete - delete
{{- if .Values.server.sso }} {{- if .Values.server.sso }}
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
@ -46,7 +46,7 @@ rules:
- secrets - secrets
verbs: verbs:
- create - create
{{- if .Values.server.sso.rbac }} {{- if .Values.server.sso.rbac }}
- apiGroups: - apiGroups:
- "" - ""
resources: resources:
@ -55,8 +55,8 @@ rules:
- get - get
- list - list
- watch - watch
{{- end }}
{{- end }} {{- end }}
{{- end }}
- apiGroups: - apiGroups:
- "" - ""
resources: resources: