From 03ad06d82776ba189b638c809f9fa6a8af1bd1f1 Mon Sep 17 00:00:00 2001 From: Jake Spain Date: Thu, 7 Sep 2023 10:00:38 -0400 Subject: [PATCH] Make auth config customizable and remove default dummy auth --- .../vmpooler/templates/configmap-vmpooler-baseconfig.yaml | 2 ++ helm-charts/vmpooler/values.yaml | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/helm-charts/vmpooler/templates/configmap-vmpooler-baseconfig.yaml b/helm-charts/vmpooler/templates/configmap-vmpooler-baseconfig.yaml index e914e3a..5b71e19 100644 --- a/helm-charts/vmpooler/templates/configmap-vmpooler-baseconfig.yaml +++ b/helm-charts/vmpooler/templates/configmap-vmpooler-baseconfig.yaml @@ -12,9 +12,11 @@ data: :tagfilter: project: '^([^/]+)' + {{- if .Values.auth }} :auth: {{- with .Values.auth }} {{- toYaml . | nindent 6 }} {{- end }} + {{- end }} :prometheus: prefix: {{ .Values.vmpoolerInstance }} diff --git a/helm-charts/vmpooler/values.yaml b/helm-charts/vmpooler/values.yaml index 88bde85..e049a6c 100644 --- a/helm-charts/vmpooler/values.yaml +++ b/helm-charts/vmpooler/values.yaml @@ -44,8 +44,7 @@ baseconfig_extras: {} # vmware_cluster2: 100 # vmware_cluster4: 180 -auth: - provider: 'dummy' +# auth: # provider: 'ldap' # :ldap: # host: 'ldap.example.com'