Commit c95b42f9 authored by Jens Langhammer's avatar Jens Langhammer

helm: better handle DB settings

parent ef2aa457
Pipeline #3272 passed with stages
in 3 minutes and 28 seconds
......@@ -2,5 +2,5 @@ apiVersion: v1
appVersion: "1.8.8"
description: A Helm chart for pyazo.
name: pyazo
version: 1.8.8
version: 1.8.9
icon: https://pyazo.beryju.org/images/logo.png
......@@ -8,16 +8,15 @@ data:
databases:
default:
engine: django.db.backends.mysql
name: {{ .Values.config.databases.default.name }}
user: {{ .Values.config.databases.default.user }}
password: {{ .Values.config.databases.default.password }}
name: {{ .Values.db.name }}
user: {{ .Values.db.user }}
password: {{ .Values.db.password }}
host: mysql
port: ''
options:
charset: UTF8MB4
sql_mode: 'STRICT_TRANS_TABLES'
init_command: "ALTER DATABASE {{ .Values.config.databases.default.name }} CHARACTER SET utf8 COLLATE utf8_unicode_ci;"
# This is the default configuration file
init_command: "ALTER DATABASE {{ .Values.db.name }} CHARACTER SET utf8 COLLATE utf8_unicode_ci;"
log:
level:
console: DEBUG
......@@ -40,7 +39,7 @@ data:
HTTP_X_FORWARDED_PROTO: https
redis: redis
# Error reporting, disabled by default
error_report_enabled: false
error_report_enabled: {{ .Values.config.error_reporting }}
# Set this to the server's external address.
# This is used to generate external URLs
......@@ -63,4 +62,8 @@ data:
# If this is true, images are automatically claimed if the windows user exists
# in django
auto_claim_enabled: true
{{- if .Values.config.secret_key }}
secret_key: {{ .Values.config.secret_key }}
{{- else }}
secret_key: {{ randAlphaNum 50 }}
{{- end }}
......@@ -10,12 +10,14 @@ image:
nameOverride: ""
config:
secret_key: _k*@6h2u2@q-dku57hhgzb7tnx*ba9wodcb^s9g0j59@=y(@_o
databases:
default:
name: pyazo
user: pyazo
password: EK-5jnKfjrGRm<77
# Optionally specify fixed secret_key, otherwise generated automatically
# secret_key: _k*@6h2u2@q-dku57hhgzb7tnx*ba9wodcb^s9g0j59@=y(@_o
# Enable error reporting
error_reporting: true
db:
user: pyazo
name: pyazo
service:
type: ClusterIP
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment