From 73f89947e93061b1b6fb5a7b7f88bb79ef6854a7 Mon Sep 17 00:00:00 2001 From: Michael Borland Date: Tue, 19 Nov 2024 22:25:41 +0000 Subject: [PATCH] feat: add ability to set user groups for access --- chart/templates/uds-package.yaml | 7 +++++++ chart/values.yaml | 1 + 2 files changed, 8 insertions(+) diff --git a/chart/templates/uds-package.yaml b/chart/templates/uds-package.yaml index 9f4aeba..ea49bde 100644 --- a/chart/templates/uds-package.yaml +++ b/chart/templates/uds-package.yaml @@ -19,6 +19,13 @@ spec: - "{{ . }}" {{- end }} {{- end }} + groups: + anyOf: + {{- if .Values.sso.requiredGroups }} + {{- range .Values.sso.requiredGroups }} + - "{{ . }}" + {{- end }} + {{- end }} {{- end }} network: expose: diff --git a/chart/values.yaml b/chart/values.yaml index 16b4ec9..b85d23c 100644 --- a/chart/values.yaml +++ b/chart/values.yaml @@ -7,6 +7,7 @@ sso: enabled: true # This will replace the current list of default client scopes. defaultClientScopes: [] + requiredGroups: [] serviceMonitor: secretName: artifactory-admin-credentials