From dc49380dfd372bbd3e7016286ecd2cd320d13947 Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Mon, 24 Apr 2023 17:52:50 +0200 Subject: [PATCH] fix(hedgedoc): Remove empty `env` section --- charts/hedgedoc/Chart.yaml | 9 ++++++--- charts/hedgedoc/README.md | 4 +++- charts/hedgedoc/templates/deployment.yaml | 4 ++-- 3 files changed, 11 insertions(+), 6 deletions(-) diff --git a/charts/hedgedoc/Chart.yaml b/charts/hedgedoc/Chart.yaml index 6d8346155..3a50c51e5 100644 --- a/charts/hedgedoc/Chart.yaml +++ b/charts/hedgedoc/Chart.yaml @@ -1,6 +1,9 @@ apiVersion: v2 name: hedgedoc -description: A platform to write and share markdown. +description: | + A platform to write and share markdown. + + (Be aware: This is currently a PoC and not necessarily fit for all use-cases. It is mainly built for use with external PostgresQL databases.) home: https://hedgedoc.org icon: https://avatars.githubusercontent.com/u/67865462 type: application @@ -11,7 +14,7 @@ keywords: sources: - https://github.com/hedgedoc/hedgedoc/tree/master - https://git.shivering-isles.com/shivering-isles/infrastructure-gitops/-/tree/main/charts/hedgedoc -version: 0.2.0 +version: 0.2.1 # renovate: image=quay.io/hedgedoc/hedgedoc appVersion: 1.9.7 maintainers: @@ -21,4 +24,4 @@ dependencies: - name: postgresql version: 11.9.13 repository: https://raw.githubusercontent.com/bitnami/charts/archive-full-index/bitnami - condition: postgresql.enabled \ No newline at end of file + condition: postgresql.enabled diff --git a/charts/hedgedoc/README.md b/charts/hedgedoc/README.md index 45928477e..819c230aa 100644 --- a/charts/hedgedoc/README.md +++ b/charts/hedgedoc/README.md @@ -1,9 +1,11 @@ # hedgedoc -   +   A platform to write and share markdown. +(Be aware: This is currently a PoC and not necessarily fit for all use-cases. It is mainly built for use with external PostgresQL databases.) + **Homepage:** <https://hedgedoc.org> ## Maintainers diff --git a/charts/hedgedoc/templates/deployment.yaml b/charts/hedgedoc/templates/deployment.yaml index 85734b29c..a7a0b9029 100644 --- a/charts/hedgedoc/templates/deployment.yaml +++ b/charts/hedgedoc/templates/deployment.yaml @@ -38,14 +38,14 @@ spec: name: {{ include "hedgedoc.fullname" . }} - secretRef: name: {{ include "hedgedoc.fullname" . }} + {{- if (or .Values.postgresql.enabled .Values.postgresql.auth.existingSecret) }} env: - {{- if (or .Values.postgresql.enabled .Values.postgresql.auth.existingSecret) }} - name: "CMD_DB_PASSWORD" valueFrom: secretKeyRef: name: {{ template "hedgedoc.postgresql.secretName" . }} key: password - {{- end }} + {{- end }} ports: - name: http containerPort: 3000 -- GitLab