Skip to content

Commit

Permalink
Add geoserver printing host customiization (#225)
Browse files Browse the repository at this point in the history
* feat: complete print configuration and allow addition of new hosts

* task: remove unused configmap

* Take review comments into account
  • Loading branch information
AlexGacon authored Nov 27, 2024
1 parent 7c4a963 commit 9fbb9b4
Show file tree
Hide file tree
Showing 4 changed files with 1,307 additions and 47 deletions.
10 changes: 7 additions & 3 deletions charts/geonode/templates/geoserver/geoserver-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ spec:
# Copy defaults from data container
echo "copying geoserver_data files into volume ..."
cp -r /tmp/geonode/downloaded/data/* /geoserver_data/data/
# Copy overrides from ConfigMap
cp /overrides/config.yaml /geoserver_data/data/printing/
touch /geoserver_data/data/.geoserver_data_copied
else
echo "geoserver_data files already exists, skipping copy ..."
Expand All @@ -45,7 +49,7 @@ spec:
- name: "{{ include "persistant_volume_name" . }}"
mountPath: /geoserver_data/data
subPath: geoserver-data-dir
- name: geoserver-notifier-xml
- name: geoserver-printing-config-yaml
mountPath: /overrides

{{- if not (empty .Values.geoserver.imagePullSecret) }}
Expand Down Expand Up @@ -106,9 +110,9 @@ spec:
cpu: {{ .Values.geoserver.resources.limits.cpu }}

volumes:
- name: geoserver-notifier-xml
- name: geoserver-printing-config-yaml
configMap:
name: {{ .Release.Name }}-geoserver-notifier-xml
name: {{ .Release.Name }}-geoserver-printing-config-yaml
- name: "{{ include "persistant_volume_name" . }}"
persistentVolumeClaim:
claimName: pvc-{{ .Release.Name }}-geonode
44 changes: 0 additions & 44 deletions charts/geonode/templates/geoserver/geoserver-notifier-xml.yaml

This file was deleted.

Loading

0 comments on commit 9fbb9b4

Please sign in to comment.