From 24b05e31d46681c965f6cee7182c7e1783cd24ac Mon Sep 17 00:00:00 2001 From: Michael-Kruggel Date: Wed, 13 Nov 2024 19:09:52 +0000 Subject: [PATCH] feat: configurable defaultClientScopes --- chart/templates/uds-package.yaml | 6 ++++++ chart/values.yaml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/chart/templates/uds-package.yaml b/chart/templates/uds-package.yaml index 69d634c..9f4aeba 100644 --- a/chart/templates/uds-package.yaml +++ b/chart/templates/uds-package.yaml @@ -13,6 +13,12 @@ spec: clientId: uds-package-artifactory redirectUris: - "https://artifactory.{{ .Values.domain }}/artifactory/" + defaultClientScopes: + {{- if .Values.sso.defaultClientScopes }} + {{- range .Values.sso.defaultClientScopes }} + - "{{ . }}" + {{- end }} + {{- end }} {{- end }} network: expose: diff --git a/chart/values.yaml b/chart/values.yaml index 5d86441..d9ee0d9 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -5,6 +5,8 @@ domain: "###ZARF_VAR_DOMAIN###" sso: enabled: true + # This will replace the current list of default client scopes. + defaultClientScopes: {} serviceMonitor: secretName: artifactory-admin-credentials