From d7847fe89b760c5c585d6c8803e11629002450fa Mon Sep 17 00:00:00 2001 From: Brian Stinson Date: Fri, 5 Apr 2024 03:38:46 -0500 Subject: [PATCH] fix: Allow specifying external dburl in Helm (#672) --- charts/planka/Chart.yaml | 2 +- charts/planka/templates/deployment.yaml | 5 +++++ charts/planka/values.yaml | 4 +++- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/charts/planka/Chart.yaml b/charts/planka/Chart.yaml index 1d733e7b..3f291a93 100644 --- a/charts/planka/Chart.yaml +++ b/charts/planka/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.1.21 +version: 0.1.22 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/planka/templates/deployment.yaml b/charts/planka/templates/deployment.yaml index 06d56b96..2d0d35b4 100644 --- a/charts/planka/templates/deployment.yaml +++ b/charts/planka/templates/deployment.yaml @@ -58,11 +58,16 @@ spec: resources: {{- toYaml .Values.resources | nindent 12 }} env: + {{- if not .Values.postgresql.enabled }} + - name: DATABASE_URL + value: {{ required "If the included postgresql deployment is disabled you need to define a Database URL in 'dburl'" .Values.dburl }} + {{- else }} - name: DATABASE_URL valueFrom: secretKeyRef: name: planka-postgresql-svcbind-custom-user key: uri + {{- end }} - name: BASE_URL {{- if .Values.baseUrl }} value: {{ .Values.baseUrl }} diff --git a/charts/planka/values.yaml b/charts/planka/values.yaml index 04cc5a84..8adf94f6 100644 --- a/charts/planka/values.yaml +++ b/charts/planka/values.yaml @@ -105,12 +105,14 @@ postgresql: serviceBindings: enabled: true +## Set this if you disable the built-in postgresql deployment +dburl: + ## PVC-based data storage configuration persistence: enabled: false # existingClaim: netbox-data # storageClass: "-" - accessMode: ReadWriteOnce size: 10Gi