4141 labels :
4242 {{- include "open-webui.labels" . | nindent 8 }}
4343 {{- with .Values.podLabels }}
44- {{- toYaml . | nindent 8 }}
44+ {{- tpl ( toYaml .) $ | nindent 8 }}
4545 {{- end }}
4646 {{- with .Values.podAnnotations }}
4747 annotations :
5050 spec :
5151 {{- with .Values.imagePullSecrets }}
5252 imagePullSecrets :
53- {{- toYaml . | nindent 8 }}
53+ {{- tpl ( toYaml .) $ | nindent 8 }}
5454 {{- end }}
5555 {{- with .Values.priorityClassName }}
5656 priorityClassName : {{ . }}
@@ -324,19 +324,33 @@ spec:
324324 {{- end }}
325325 {{- if .Values.sso.oidc.enabled }}
326326 - name : " OAUTH_CLIENT_ID"
327+ {{- if .Values.sso.oidc.clientExistingSecret }}
328+ valueFrom :
329+ secretKeyRef :
330+ name : {{ tpl .Values.sso.oidc.clientExistingSecret . | quote }}
331+ key : {{ tpl .Values.sso.oidc.clientIdExistingSecretKey . | quote }}
332+ {{- else }}
327333 value : {{ .Values.sso.oidc.clientId | quote }}
334+ {{- end }}
328335 {{- include "sso.validateClientSecret" (dict "provider" "oidc" "values" .Values.sso) }}
329336 - name : " OAUTH_CLIENT_SECRET"
330337 {{- if .Values.sso.oidc.clientExistingSecret }}
331338 valueFrom :
332339 secretKeyRef :
333- name : {{ .Values.sso.oidc.clientExistingSecret | quote }}
334- key : {{ .Values.sso.oidc.clientExistingSecretKey | quote }}
340+ name : {{ tpl .Values.sso.oidc.clientExistingSecret . | quote }}
341+ key : {{ tpl .Values.sso.oidc.clientExistingSecretKey . | quote }}
335342 {{- else }}
336343 value : {{ .Values.sso.oidc.clientSecret | quote }}
337344 {{- end }}
338345 - name : " OPENID_PROVIDER_URL"
346+ {{- if .Values.sso.oidc.existingConfig }}
347+ valueFrom :
348+ configMapKeyRef :
349+ name : {{ tpl .Values.sso.oidc.existingConfig . | quote }}
350+ key : {{ tpl .Values.sso.oidc.existingConfigProviderUrlKey . | quote }}
351+ {{- else }}
339352 value : {{ .Values.sso.oidc.providerUrl | quote }}
353+ {{- end }}
340354 - name : " OAUTH_PROVIDER_NAME"
341355 value : {{ .Values.sso.oidc.providerName | quote }}
342356 - name : " OAUTH_SCOPES"
@@ -349,11 +363,11 @@ spec:
349363 value : {{ .Values.sso.roleManagement.rolesClaim | quote }}
350364 {{- if .Values.sso.roleManagement.allowedRoles }}
351365 - name : " OAUTH_ALLOWED_ROLES"
352- value : {{ .Values.sso.roleManagement.allowedRoles | quote }}
366+ value : {{ tpl .Values.sso.roleManagement.allowedRoles . | quote }}
353367 {{- end }}
354368 {{- if .Values.sso.roleManagement.adminRoles }}
355369 - name : " OAUTH_ADMIN_ROLES"
356- value : {{ .Values.sso.roleManagement.adminRoles | quote }}
370+ value : {{ tpl .Values.sso.roleManagement.adminRoles . | quote }}
357371 {{- end }}
358372 {{- end }}
359373 {{- if .Values.sso.enableGroupManagement }}
@@ -387,16 +401,16 @@ spec:
387401 {{- include "open-webui.env" .Values.extraEnvVars | nindent 8 }}
388402 {{- end }}
389403 {{- if .Values.commonEnvVars }}
390- {{- toYaml .Values.commonEnvVars | nindent 8 }}
404+ {{- tpl ( toYaml .Values.commonEnvVars) . | nindent 8 }}
391405 {{- end }}
392406 {{- if .Values.extraEnvFrom }}
393407 envFrom :
394- {{- toYaml .Values.extraEnvFrom | nindent 8 }}
408+ {{- tpl ( toYaml .Values.extraEnvFrom) . | nindent 8 }}
395409 {{- end }}
396410 tty : true
397411 {{- with .Values.nodeSelector }}
398412 nodeSelector :
399- {{- toYaml . | nindent 8 }}
413+ {{- tpl ( toYaml .) $ | nindent 8 }}
400414 {{- end }}
401415 {{- with .Values.tolerations }}
402416 tolerations :
0 commit comments