Skip to content

Commit

Permalink
correct vars
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmi151 committed Oct 9, 2023
1 parent 5a1f6f9 commit 5274b49
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions templates/geoserver/geoserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{{- $database := .Values.database -}}
{{- $database_secret_geodata_name := printf "%s-database-geodata-secret" (include "georchestra.fullname" .) -}}
{{- $database_secret_datafeeder_name := printf "%s-database-datafeeder-secret" (include "georchestra.fullname" .) -}}
{{- $database_secret_gwc_name := printf "%s-database-georchestra" (include "georchestra.fullname" .) -}}
{{- $database_secret_gwc_name = printf "%s-database-georchestra-secret" (include "georchestra.fullname" .) -}}

apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -157,28 +157,26 @@ spec:
{{- $database_secret_gwc_name = printf "%s-database-georchestra-secret" (include "georchestra.fullname" .) -}}
- name: JNDI_GEORCHESTRA_JDBC_HOST
value: "{{ .Release.Name }}-database"
- name: JNDI_GEORCHESTRA_JDBC_DATABASE
value: "datafeeder"
{{ else }}
{{- $database_secret_gwc_name = $database.datafeeder.auth.existingSecret -}}
{{- else }}
{{- $database_secret_gwc_name = .Values.database.auth.existingSecret -}}
- name: JNDI_GEORCHESTRA_JDBC_HOST
valueFrom:
secretKeyRef:
name: {{ $database_secret_gwc_name }}
key: host
optional: false
- name: JNDI_GEORCHESTRA_JDBC_DATABASE
{{- end }}
- name: JNDI_GEORCHESTRA_JDBC_PORT
valueFrom:
secretKeyRef:
name: {{ $database_secret_gwc_name }}
key: dbname
key: port
optional: false
{{ end }}
- name: JNDI_GEORCHESTRA_JDBC_PORT
- name: JNDI_GEORCHESTRA_JDBC_DATABASE
valueFrom:
secretKeyRef:
name: {{ $database_secret_gwc_name }}
key: port
key: dbname
optional: false
- name: JNDI_GEORCHESTRA_JDBC_USERNAME
valueFrom:
Expand Down

0 comments on commit 5274b49

Please sign in to comment.