From 7196b25f45b603ea7b1e525965a4984dbc7457bf Mon Sep 17 00:00:00 2001 From: jean-michel crepel <45998535+jeanmi151@users.noreply.github.com> Date: Fri, 3 Nov 2023 11:14:11 +0100 Subject: [PATCH] adding gwc and df env var for gs-lb (#13) * adding gwc and df env var for gs-lb * update versions of the chart --- geoserver-lb/Chart.yaml | 2 +- geoserver-lb/templates/geoserver-deploy.yaml | 60 ++++++++++++++++++++ geoserver-lb/values.yaml | 8 ++- 3 files changed, 68 insertions(+), 2 deletions(-) diff --git a/geoserver-lb/Chart.yaml b/geoserver-lb/Chart.yaml index 85b810f..1d3fb86 100644 --- a/geoserver-lb/Chart.yaml +++ b/geoserver-lb/Chart.yaml @@ -2,5 +2,5 @@ name: geoserver-lb apiVersion: v2 description: A Helm chart for deploying geoserver loadbalanced type: application -version: 0.4.2 +version: 0.5.0 appVersion: "22.0.4" diff --git a/geoserver-lb/templates/geoserver-deploy.yaml b/geoserver-lb/templates/geoserver-deploy.yaml index 40009e2..525a125 100644 --- a/geoserver-lb/templates/geoserver-deploy.yaml +++ b/geoserver-lb/templates/geoserver-deploy.yaml @@ -139,6 +139,66 @@ spec: name: {{ .Values.database.geodata.auth.existingSecret }} key: password optional: false + - name: DF_PGHOST + valueFrom: + secretKeyRef: + name: {{ .Values.database.datafeeder.auth.existingSecret }} + key: host + optional: false + - name: DF_PGDATABASE + valueFrom: + secretKeyRef: + name: {{ .Values.database.datafeeder.auth.existingSecret }} + key: dbname + optional: false + - name: DF_PGPORT + valueFrom: + secretKeyRef: + name: {{ .Values.database.datafeeder.auth.existingSecret }} + key: port + optional: false + - name: DF_PGUSER + valueFrom: + secretKeyRef: + name: {{ .Values.database.datafeeder.auth.existingSecret }} + key: user + optional: false + - name: DF_PGPASSWORD + valueFrom: + secretKeyRef: + name: {{ .Values.database.datafeeder.auth.existingSecret }} + key: password + optional: false + - name: GWC_PGHOST + valueFrom: + secretKeyRef: + name: {{ .Values.database.gwc.auth.existingSecret }} + key: host + optional: false + - name: GWC_PGPORT + valueFrom: + secretKeyRef: + name: {{ .Values.database.gwc.auth.existingSecret }} + key: port + optional: false + - name: GWC_PGDATABASE + valueFrom: + secretKeyRef: + name: {{ .Values.database.gwc.auth.existingSecret }} + key: dbname + optional: false + - name: GWC_PGUSERNAME + valueFrom: + secretKeyRef: + name: {{ .Values.database.gwc.auth.existingSecret }} + key: user + optional: false + - name: GWC_PGPASSWORD + valueFrom: + secretKeyRef: + name: {{ .Values.database.gwc.auth.existingSecret }} + key: password + optional: false {{- with .Values.geoserver.extra_environment }} {{- . | toYaml | nindent 8 }} {{- end }} diff --git a/geoserver-lb/values.yaml b/geoserver-lb/values.yaml index a543473..ab8b820 100644 --- a/geoserver-lb/values.yaml +++ b/geoserver-lb/values.yaml @@ -31,4 +31,10 @@ database: existingSecret: mysecret geodata: auth: - existingSecret: mysecret \ No newline at end of file + existingSecret: mysecret + datafeeder: + auth: + existingSecret: mysecret + gwc: + auth: + existingSecret: mysecret