Skip to content
Snippets Groups Projects
Unverified Commit b9e88678 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

Add more settings, including SSO and msmtp

parent c2365630
No related branches found
No related tags found
1 merge request!11Add more settings, including SSO and msmtp
Pipeline #39549 passed
...@@ -88,6 +88,16 @@ spec: ...@@ -88,6 +88,16 @@ spec:
mountPath: /tmp mountPath: /tmp
- name: frontend-logs - name: frontend-logs
mountPath: /obs/src/api/log mountPath: /obs/src/api/log
{{- if (or .Values.global.frontend.msmtprc .Values.global.frontend.msmtprcExistingSecret) }}
- name: frontend-email-secret
mountPath: /run/secrets/msmtprc
subPath: msmtprc
{{- end }}
{{- if (or .Values.global.frontend.ssoauth .Values.global.frontend.ssoauthExistingSecret) }}
- name: frontend-sso-secret
mountPath: /run/secrets/ssoauth
subPath: ssoauth
{{- end }}
- name: {{ .Chart.Name }}-weblog - name: {{ .Chart.Name }}-weblog
image: busybox image: busybox
args: args:
...@@ -132,6 +142,16 @@ spec: ...@@ -132,6 +142,16 @@ spec:
emptyDir: {} emptyDir: {}
- name: frontend-logs - name: frontend-logs
emptyDir: {} emptyDir: {}
{{- if (or .Values.global.frontend.msmtprc .Values.global.frontend.msmtprcExistingSecret) }}
- name: frontend-email-secret
secret:
secretName: {{ .Values.global.frontend.msmtprcExistingSecret | default (printf "%s-email" (include "frontend.fullname" .)) }}
{{- end }}
{{- if (or .Values.global.frontend.ssoauth .Values.global.frontend.ssoauthExistingSecret) }}
- name: frontend-sso-secret
secret:
secretName: {{ .Values.global.frontend.ssoauthExistingSecret | default (printf "%s-sso" (include "frontend.fullname" .)) }}
{{- end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
......
{{- if (and .Values.global.frontend.msmtprc (not .Values.global.frontend.msmtprcExistingSecret)) -}}
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ include "frontend.fullname" . }}-email
labels:
{{- include "frontend.labels" . | nindent 4 }}
data:
msmtprc: {{ default "" .Values.global.frontend.msmtprc | b64enc | quote }}
{{- end }}
{{- if (and .Values.global.frontend.ssoauth (not .Values.global.frontend.ssoauthExistingSecret)) -}}
apiVersion: v1
kind: Secret
type: Opaque
metadata:
name: {{ include "frontend.fullname" . }}-sso
labels:
{{- include "frontend.labels" . | nindent 4 }}
data:
ssoauth: {{ default "" .Values.global.frontend.ssoauth | toYaml | b64enc | quote }}
{{- end }}
...@@ -24,6 +24,17 @@ global: ...@@ -24,6 +24,17 @@ global:
frontend: frontend:
workers: 4 workers: 4
# host: frontend # host: frontend
# msmtprc: |
# ...
# ssoauth:
# fdo-gitlab:
# strategy: gitlab
# description: Freedesktop.org GitLab
# scope: read_user openid profile email
# client_id: hexhexhexhex
# client_secret: hexhexhexhex
# client_options:
# site: https://gitlab.freedesktop.org/api/v4
backend: {} backend: {}
# host: backend # host: backend
# extraConfig: | # extraConfig: |
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment