[tt-rss] Fix env vars (#1690)

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-07-05 15:23:45 +02:00 committed by GitHub
parent 9c1e76f8b1
commit 418e6cea1e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 30 deletions

View File

@ -3,7 +3,7 @@ apiVersion: v2
appVersion: v1.8723.0
description: Tiny Tiny RSS is a free and open source web-based news feed (RSS/Atom) reader and aggregator
name: tt-rss
version: 5.0.0
version: 5.0.1
kubeVersion: ">=1.16.0-0"
keywords:
- tt-rss
@ -24,7 +24,5 @@ dependencies:
condition: postgresql.enabled
annotations:
artifacthub.io/changes: |-
- kind: changed
description: Upgraded `postgresql` chart dependency to version 11.6.12
- kind: changed
description: Changed the default user for the postgresql database to `tt-rss`
- kind: fixed
description: Fixed the default values for the database environment variables.

View File

@ -1,22 +1 @@
{{/* Make sure all variables are set properly */}}
{{- include "common.values.setup" . }}
{{/* if TTRSS_DB_HOST is not set use internal postgres chart */}}
{{- if eq .Values.env.TTRSS_DB_HOST "" -}}
{{- $_ := set .Values.env "TTRSS_DB_HOST" (printf "%s-postgresql" .Release.Name) -}}
{{- end -}}
{{/* if TTRSS_DB_USER is not set use internal postgres chart */}}
{{- if eq .Values.env.TTRSS_DB_USER "" -}}
{{- $_ := set .Values.env "TTRSS_DB_USER" .Values.postgresql.auth.username -}}
{{- end -}}
{{/* if TTRSS_DB_USER is not set use internal postgres chart */}}
{{- if eq .Values.env.TTRSS_DB_PASS "" -}}
{{- $_ := set .Values.env "TTRSS_DB_PASS" .Values.postgresql.auth.password -}}
{{- end -}}
{{/* if TTRSS_DB_USER is not set use internal postgres chart */}}
{{- if eq .Values.env.TTRSS_DB_NAME "" -}}
{{- $_ := set .Values.env "TTRSS_DB_NAME" .Values.postgresql.auth.database -}}
{{- end -}}
{{/* Render the templates */}}
{{ include "common.all" . }}

View File

@ -21,18 +21,18 @@ env:
TTRSS_SELF_URL_PATH: ""
# -- Postgres database hostname
# @default -- internal postgresql URL
TTRSS_DB_HOST: ""
TTRSS_DB_HOST: "{{ printf \"%s-postgresql\" .Release.Name }}"
# -- Postgres database port.
TTRSS_DB_PORT: "5432"
# -- Postgres database user name
# @default -- postgresql.auth.username value
TTRSS_DB_USER: ""
TTRSS_DB_USER: "{{ .Values.postgresql.auth.username }}"
# -- Postgres database password
# @default -- postgresql.auth.password value
TTRSS_DB_PASS: ""
TTRSS_DB_PASS: "{{ .Values.postgresql.auth.password }}"
# -- Postgres database password
# @default -- postgresql.auth.database value
TTRSS_DB_NAME: ""
TTRSS_DB_NAME: "{{ .Values.postgresql.auth.database }}"
# -- Configure the services for the chart here.
# @default -- See below.