Skip to content

Commit

Permalink
add envsubst capability in geowebcache (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c authored Aug 20, 2024
1 parent 72b88e3 commit 7625382
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
17 changes: 17 additions & 0 deletions templates/geowebcache/geowebcache-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,23 @@ spec:
fsGroup: 999
initContainers:
{{ include "georchestra.bootstrap_georchestra_datadir" . | nindent 6 }}
{{- if $webapp.envsubst.enabled }}
- name: envsubst
image: georchestra/k8s-initcontainer-envsubst
volumeMounts:
- mountPath: /etc/georchestra
name: georchestra-datadir
env:
- name: DEBUG
value: "yes"
- name: SUBST_FILES
value: "/etc/georchestra/geowebcache/datadir/*"
{{- include "georchestra.common-envs" . | nindent 10 }}
{{- if $webapp.extra_environment }}
{{- $webapp.extra_environment | toYaml | nindent 10 }}
{{- end }}
{{- end }}

containers:
- name: georchestra-geowebcache
image: {{ $webapp.docker_image }}
Expand Down
2 changes: 2 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,8 @@ georchestra:
geowebcache:
enabled: false
replicaCount: "1"
envsubst:
enabled: true
docker_image: georchestra/geowebcache:latest
extra_environment: []
service:
Expand Down

0 comments on commit 7625382

Please sign in to comment.