fix(argo-workflows): Set only used values on SSO configuration (#1483)

Signed-off-by: yu-croco <yu.croco@gmail.com>
This commit is contained in:
Aikawa 2022-09-24 09:03:36 +09:00 committed by GitHub
parent f1fabf17dd
commit fd0f2c92e1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 39 additions and 3 deletions

View file

@ -119,7 +119,38 @@ data:
workflowDefaults:
{{ toYaml .Values.controller.workflowDefaults | indent 6 }}{{- end }}
{{- with .Values.server.sso }}
sso: {{- toYaml . | nindent 6 }}
sso:
issuer: {{ .issuer }}
clientId:
name: {{ .clientId.name }}
key: {{ .clientId.key }}
clientSecret:
name: {{ .clientSecret.name }}
key: {{ .clientSecret.key }}
redirectUrl: {{ .redirectUrl }}
{{- if and (.rbac) (.rbac.enabled) }}
rbac:
enabled: {{ .rbac.enabled }}
{{- end }}
{{- if .scopes }}
scopes: {{ toYaml .scopes | nindent 8 }}
{{- end }}
{{- if .issuerAlias }}
issuerAlias: {{ .issuerAlias }}
{{- end }}
{{- if and (.sessionExpiry) (.sessionExpiry.duration) }}
sessionExpiry:
duration: {{ .sessionExpiry.duration }}
{{- end }}
{{- if .customGroupClaimName }}
customGroupClaimName: {{ .customGroupClaimName }}
{{- end }}
{{- if .userInfoPath }}
userInfoPath: {{ .userInfoPath }}
{{- end }}
{{- if .insecureSkipVerify }}
insecureSkipVerify: {{ .insecureSkipVerify }}
{{- end }}
{{- end }}
{{- with .Values.controller.workflowRestrictions }}
workflowRestrictions: {{- toYaml . | nindent 6 }}