* inial attempt at support for fireflyiii * encoded postgres in base64, fixed chart.yaml linting issiues * fixed trailing spaces in chart.yaml * removed . in secrets.yaml as suggested by test? * attempting to fix line 20 secrets.yaml * cleanup common-yaml template. * Update incubator/fireflyiii/1.0.0/questions.yaml * added app_key, node port to questions.yaml and updated default nodeports-md. * added network settings to questions.yaml * corrected pgsql ports in test and questions. * attempting to fix authentication issues with sql. * set to run as root, sadly app doesn't work without it Co-authored-by: Kjeld Schouten-Lebbing <kjeld@schouten-lebbing.nl>
22 lines
958 B
YAML
22 lines
958 B
YAML
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
labels:
|
|
{{- include "common.labels" . | nindent 4 }}
|
|
name: dbcreds
|
|
{{- $previous := lookup "v1" "Secret" .Release.Namespace "dbcreds" }}
|
|
{{- $dbPass := "" }}
|
|
data:
|
|
{{- if $previous }}
|
|
{{- $dbPass = ( index $previous.data "postgresql-password" ) | b64dec }}
|
|
postgresql-password: {{ ( index $previous.data "postgresql-password" ) }}
|
|
postgresql-postgres-password: {{ ( index $previous.data "postgresql-postgres-password" ) }}
|
|
{{- else }}
|
|
{{- $dbPass = randAlphaNum 50 }}
|
|
postgresql-password: {{ $dbPass | b64enc | quote }}
|
|
postgresql-postgres-password: {{ randAlphaNum 50 | b64enc | quote }}
|
|
{{- end }}
|
|
url: {{ ( printf "%v%v:%v@%v-%v:%v/%v" "postgresql://" .Values.postgresql.postgresqlUsername $dbPass .Release.Name "postgresql" "5432" .Values.postgresql.postgresqlDatabase ) | b64enc | quote }}
|
|
postgresql_host: {{ ( printf "%v-%v" .Release.Name "postgresql" ) | b64enc | quote }}
|
|
type: Opaque
|