From 1cb6c6ef8b3a4ffed3381f26001c9cfdf0b8f271 Mon Sep 17 00:00:00 2001 From: Emilien Devos <121870973+edevosc2c@users.noreply.github.com> Date: Fri, 22 Mar 2024 09:56:49 +0100 Subject: [PATCH] use correct way to describe extra volumes --- geoserver-lb/Chart.yaml | 2 +- geoserver-lb/templates/geoserver-deploy.yaml | 11 ++++------- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/geoserver-lb/Chart.yaml b/geoserver-lb/Chart.yaml index 6b1c701..9a8af03 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.5.1 +version: 0.6.0 appVersion: "22.0.4" diff --git a/geoserver-lb/templates/geoserver-deploy.yaml b/geoserver-lb/templates/geoserver-deploy.yaml index b6abe82..7b377eb 100644 --- a/geoserver-lb/templates/geoserver-deploy.yaml +++ b/geoserver-lb/templates/geoserver-deploy.yaml @@ -51,10 +51,8 @@ spec: - name: geoserver-geodata persistentVolumeClaim: claimName: georchestra-geoserver-geodata - {{- range .Values.geoserver.extra_volumes }} - - name: {{ .name }} - persistentVolumeClaim: - claimName: {{ .claimName }} + {{- if .Values.geoserver.extra_volumes }} + {{ .Values.geoserver.extra_volumes | toYaml | nindent 6 }} {{- end }} {{- with .Values.geoserver.pull_secret }} imagePullSecrets: @@ -239,9 +237,8 @@ spec: name: geoserver-webapp - mountPath: /mnt/geoserver_tiles name: geoserver-tiles - {{- range .Values.geoserver.extra_volumes }} - - name: {{ .name }} - mountPath: {{ .mountPath }} + {{- if .Values.geoserver.extra_volumeMounts }} + {{ .Values.geoserver.extra_volumeMounts | toYaml | nindent 10 }} {{- end }} - name: geoserver-reload image: {{ .Values.geoserver.reloader.docker_image }}