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

Add more settings, including SSO and msmtp

parent 195d55ab
No related branches found
No related tags found
No related merge requests found
Pipeline #39455 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 .Values.global.frontend.msmtprc }}
- name: frontend-email-secret
mountPath: /run/secrets/msmtprc
subPath: msmtprc
{{- end }}
{{- if .Values.global.frontend.ssoauth }}
- 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 .Values.global.frontend.msmtprc }}
- name: frontend-email-secret
secret:
secretName: {{ include "frontend.fullname" . }}-email
{{- end }}
{{- if .Values.global.frontend.ssoauth }}
- name: frontend-sso-secret
secret:
secretName: {{ include "frontend.fullname" . }}-sso
{{- end }}
{{- with .Values.nodeSelector }} {{- with .Values.nodeSelector }}
nodeSelector: nodeSelector:
{{- toYaml . | nindent 8 }} {{- toYaml . | nindent 8 }}
......
{{- if .Values.global.frontend.msmtprc -}}
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 .Values.global.frontend.ssoauth -}}
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.
Please register or to comment