blob: eefe3e3e0fa911fee17c875f49c4db52061445e4 [file] [log] [blame]
Giorgi Lekveishvili6d7dcb82023-12-20 14:44:42 +04001apiVersion: dodo.cloud.dodo.cloud/v1
2kind: ResourceRenderer
giolekva95340e82021-11-08 21:36:55 +04003metadata:
Giorgi Lekveishvili6d7dcb82023-12-20 14:44:42 +04004 name: config-renderer
giolekva95340e82021-11-08 21:36:55 +04005 namespace: {{ .Release.Namespace }}
giolekva30850462021-12-01 16:23:50 +04006 annotations:
7 helm.sh/hook: pre-install
8 helm.sh/hook-weight: "-10"
Giorgi Lekveishvili6d7dcb82023-12-20 14:44:42 +04009spec:
10 secretName: {{ .Values.oauth2.secretName }}
11 resourceTemplate: |
12 apiVersion: v1
13 kind: ConfigMap
14 metadata:
15 name: {{ .Values.configMerge.configName }}
16 namespace: {{ .Release.Namespace }}
17 data:
18 {{ .Values.configMerge.fileName }}: |
19 public_baseurl: https://{{ .Values.subdomain }}.{{ .Values.domain }}/
20 enable_registration: false
21 database:
22 name: psycopg2
23 txn_limit: 10000
24 args:
25 host: {{ .Values.postgresql.host }}
26 port: {{ .Values.postgresql.port }}
27 database: {{ .Values.postgresql.database }}
28 user: {{ .Values.postgresql.user }}
29 password: {{ .Values.postgresql.password }}
30 cp_min: 5
31 cp_max: 10
32 oidc_providers:
33 - idp_id: pcloud
34 idp_name: "PCloud"
35 skip_verification: true
Giorgi Lekveishvili0c6b3242024-03-14 15:31:08 +040036 issuer: {{ .Values.oauth2.issuer }}
Giorgi Lekveishvili6d7dcb82023-12-20 14:44:42 +040037 client_id: "{{`{{ .client_id }}`}}"
38 client_secret: "{{`{{ .client_secret }}`}}"
39 scopes: ["openid", "profile"]
40 allow_existing_users: true
41 user_mapping_provider:
42 config:
Giorgi Lekveishvilicf252f02023-12-20 19:28:57 +040043 localpart_template: "{{ cat "{{" "\"" "{{user.username}}" "\"" "}}" | nospace}}"
44 display_name_template: "{{ cat "{{" "\"" "{{user.username}}" "\"" "}}" | nospace}}"