Skip to content

Commit

Permalink
refactor env var gwc
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmi151 committed Oct 9, 2023
1 parent 658d752 commit 83b84a4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions templates/geoserver/geoserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -155,36 +155,36 @@ spec:
optional: false
{{ if $database.builtin }}
{{- $database_secret_gwc_name = printf "%s-database-georchestra-secret" (include "georchestra.fullname" .) -}}
- name: JNDI_GEORCHESTRA_JDBC_HOST
- name: GWC_PGHOST
value: "{{ .Release.Name }}-database"
{{- else }}
{{- $database_secret_gwc_name = .Values.database.auth.existingSecret -}}
- name: JNDI_GEORCHESTRA_JDBC_HOST
- name: GWC_PGHOST
valueFrom:
secretKeyRef:
name: {{ $database_secret_gwc_name }}
key: host
optional: false
{{- end }}
- name: JNDI_GEORCHESTRA_JDBC_PORT
- name: GWC_PGPORT
valueFrom:
secretKeyRef:
name: {{ $database_secret_gwc_name }}
key: port
optional: false
- name: JNDI_GEORCHESTRA_JDBC_DATABASE
- name: GWC_PGDATABASE
valueFrom:
secretKeyRef:
name: {{ $database_secret_gwc_name }}
key: dbname
optional: false
- name: JNDI_GEORCHESTRA_JDBC_USERNAME
- name: GWC_PGUSERNAME
valueFrom:
secretKeyRef:
name: {{ $database_secret_gwc_name }}
key: user
optional: false
- name: JNDI_GEORCHESTRA_JDBC_PASSWORD
- name: GWC_PGPASSWORD
valueFrom:
secretKeyRef:
name: {{ $database_secret_gwc_name }}
Expand Down

0 comments on commit 83b84a4

Please sign in to comment.