fix(argo-workflows): sso configuration (#1492)

Signed-off-by: yu-croco <yu.croco@gmail.com>
This commit is contained in:
Aikawa 2022-09-27 18:53:04 +09:00 committed by GitHub
parent ab2ab593b3
commit 99aadc56c4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 7 deletions

View file

@ -131,9 +131,9 @@ data:
name: {{ .clientSecret.name }}
key: {{ .clientSecret.key }}
redirectUrl: {{ .redirectUrl }}
{{- if and (.rbac) (.rbac.enabled) }}
{{- with .rbac }}
rbac:
enabled: {{ .rbac.enabled }}
enabled: {{ .enabled }}
{{- end }}
{{- if .scopes }}
scopes: {{ toYaml .scopes | nindent 8 }}
@ -141,9 +141,8 @@ data:
{{- if .issuerAlias }}
issuerAlias: {{ .issuerAlias }}
{{- end }}
{{- if and (.sessionExpiry) (.sessionExpiry.duration) }}
sessionExpiry:
duration: {{ .sessionExpiry.duration }}
{{- if .sessionExpiry }}
sessionExpiry: .sessionExpiry
{{- end }}
{{- if .customGroupClaimName }}
customGroupClaimName: {{ .customGroupClaimName }}