Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use as much webapps shortcut as possible #73

Merged
merged 2 commits into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion templates/analytics/analytics-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.analytics.enabled -}}
{{- $webapp := .Values.georchestra.webapps.analytics -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/analytics/analytics-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.analytics.enabled -}}
{{- $webapp := .Values.georchestra.webapps.analytics -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/cas/cas-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.cas.enabled -}}
{{- $webapp := .Values.georchestra.webapps.cas -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/cas/cas-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.cas.enabled -}}
{{- $webapp := .Values.georchestra.webapps.cas -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/console/console-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.console.enabled -}}
{{- $webapp := .Values.georchestra.webapps.console -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/console/console-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.console.enabled -}}
{{- $webapp := .Values.georchestra.webapps.console -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
4 changes: 2 additions & 2 deletions templates/datafeeder/datafeeder-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if and .Values.georchestra.webapps.datafeeder.enabled .Values.georchestra.webapps.datafeeder_frontend.enabled -}}
{{- $webapp := .Values.georchestra.webapps.datafeeder -}}
{{- if and $webapp.enabled .Values.georchestra.webapps.datafeeder_frontend.enabled -}}
{{- $database := .Values.database -}}
{{- $database_secret_datafeeder_name := printf "%s-database-datafeeder-secret" (include "georchestra.fullname" .) -}}
apiVersion: apps/v1
Expand Down Expand Up @@ -29,7 +29,7 @@ spec:
{{- end }}
initContainers:
{{- include "georchestra.bootstrap_georchestra_datadir" . | nindent 6 }}
{{- if .Values.georchestra.webapps.datafeeder.envsubst.enabled }}
{{- if $webapp.envsubst.enabled }}
- name: envsubst
image: georchestra/k8s-initcontainer-envsubst
volumeMounts:
Expand Down
3 changes: 2 additions & 1 deletion templates/datafeeder/datafeeder-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if and .Values.georchestra.webapps.datafeeder.enabled .Values.georchestra.webapps.datafeeder_frontend.enabled -}}
{{- $webapp := .Values.georchestra.webapps.datafeeder -}}
{{- if and $webapp.enabled .Values.georchestra.webapps.datafeeder_frontend.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/datafeeder/import-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if and .Values.georchestra.webapps.datafeeder.enabled .Values.georchestra.webapps.datafeeder_frontend.enabled -}}
{{- $webapp := .Values.georchestra.webapps.datafeeder_frontend -}}
{{- if and .Values.georchestra.webapps.datafeeder.enabled $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/datafeeder/import-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if and .Values.georchestra.webapps.datafeeder.enabled .Values.georchestra.webapps.datafeeder_frontend.enabled -}}
{{- $webapp := .Values.georchestra.webapps.datafeeder_frontend -}}
{{- if and .Values.georchestra.webapps.datafeeder.enabled $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/extractorapp/extractorapp-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.extractorapp.enabled -}}
{{- $webapp := .Values.georchestra.webapps.extractorapp -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/extractorapp/extractorapp-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.extractorapp.enabled -}}
{{- $webapp := .Values.georchestra.webapps.extractorapp -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/gateway/gateway-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.gateway.enabled -}}
{{- $webapp := .Values.georchestra.webapps.gateway -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/gateway/gateway-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.gateway.enabled -}}
{{- $webapp := .Values.georchestra.webapps.gateway -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/geonetwork/elasticsearch/es-data-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.geonetwork.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork.elasticsearch -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
4 changes: 2 additions & 2 deletions templates/geonetwork/elasticsearch/es-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.geonetwork.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork.elasticsearch -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -38,7 +38,7 @@ spec:
name: gn4-es-data
containers:
- name: elasticsearch
image: {{ .Values.georchestra.webapps.geonetwork.elasticsearch.image }}
image: {{ $webapp.image }}
env:
- name: ES_JAVA_OPTS
value: -Dlog4j2.formatMsgNoLookups=true -Dlog4j2.disable.jmx=true
Expand Down
3 changes: 2 additions & 1 deletion templates/geonetwork/elasticsearch/es-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.geonetwork.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork.elasticsearch -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/geonetwork/geonetwork-datadir-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.geonetwork.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/geonetwork/geonetwork-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.geonetwork.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork -}}
{{- if $webapp.enabled -}}
{{- $database := .Values.database -}}
apiVersion: apps/v1
kind: Deployment
Expand Down
3 changes: 2 additions & 1 deletion templates/geonetwork/geonetwork-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.geonetwork.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if and .Values.georchestra.webapps.geonetwork.enabled .Values.georchestra.webapps.geonetwork.housekeeping.harvester_logs.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork -}}
{{- if and $webapp.enabled $webapp.housekeeping.harvester_logs.enabled -}}
apiVersion: batch/v1
kind: CronJob
metadata:
Expand Down
5 changes: 3 additions & 2 deletions templates/geonetwork/kibana/kibana-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{{- $webapp := .Values.georchestra.webapps.geonetwork.kibana -}}
{{- if .Values.georchestra.webapps.geonetwork.enabled -}}
apiVersion: apps/v1
kind: Deployment
Expand All @@ -7,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-gn4-kibana
spec:
replicas: {{ .Values.georchestra.webapps.geonetwork.kibana.replicaCount }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand All @@ -26,7 +27,7 @@ spec:
{{- end }}
containers:
- name: kibana
image: {{ .Values.georchestra.webapps.geonetwork.kibana.image }}
image: {{ $webapp.image }}
env:
- name: ELASTICSEARCH_HOSTS
value: http://{{ include "georchestra.fullname" . }}-gn4-elasticsearch-svc:9200
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if and .Values.georchestra.webapps.geonetwork.enabled .Values.georchestra.webapps.geonetwork.ogc_api_records.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geonetwork.ogc_api_records -}}
{{- if and .Values.georchestra.webapps.geonetwork.enabled $webapp.enabled -}}
{{- $database := .Values.database -}}
apiVersion: apps/v1
kind: Deployment
Expand Down Expand Up @@ -30,7 +30,7 @@ spec:
fsGroup: 999
initContainers:
{{- include "georchestra.bootstrap_georchestra_datadir" . | nindent 6 }}
{{- if .Values.georchestra.webapps.geonetwork.ogc_api_records.envsubst.enabled }}
{{- if $webapp.envsubst.enabled }}
- name: envsubst
image: georchestra/k8s-initcontainer-envsubst
volumeMounts:
Expand Down
3 changes: 2 additions & 1 deletion templates/geoserver/geoserver-datadir-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.geoserver.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geoserver -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/geoserver/geoserver-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.geoserver.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geoserver -}}
{{- if $webapp.enabled -}}
{{- $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" .) -}}
Expand Down
3 changes: 2 additions & 1 deletion templates/geoserver/geoserver-geodata-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.geoserver.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geoserver -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/geoserver/geoserver-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.geoserver.enabled -}}
{{- $webapp := .Values.georchestra.webapps.geoserver -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/geoserver/geoserver-tiles-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if and .Values.georchestra.webapps.geoserver.enabled .Values.georchestra.storage.geoserver_tiles -}}
{{- $webapp := .Values.georchestra.webapps.geoserver -}}
{{- if and $webapp.enabled .Values.georchestra.storage.geoserver_tiles -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/ldap/openldap-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.openldap.enabled -}}
{{- $webapp := .Values.georchestra.webapps.openldap -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/ldap/openldap-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.openldap.enabled -}}
{{- $webapp := .Values.georchestra.webapps.openldap -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/ldap/openldap-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.openldap.enabled -}}
{{- $webapp := .Values.georchestra.webapps.openldap -}}
{{- if $webapp.enabled -}}
edevosc2c marked this conversation as resolved.
Show resolved Hide resolved
apiVersion: v1
kind: Service
metadata:
Expand Down
2 changes: 1 addition & 1 deletion templates/mapfishapp/mapfishapp-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.mapfishapp.enabled -}}
{{- $webapp := .Values.georchestra.webapps.mapfishapp -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/mapfishapp/mapfishapp-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.mapfishapp.enabled -}}
{{- $webapp := .Values.georchestra.webapps.mapfishapp -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
8 changes: 4 additions & 4 deletions templates/mapstore/mapstore-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.mapstore.enabled -}}
{{- $webapp := .Values.georchestra.webapps.mapstore -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -33,13 +33,13 @@ spec:
- name: georchestra-mapstore
image: {{ $webapp.docker_image }}
imagePullPolicy: Always
{{ if and .Values.georchestra.webapps.mapstore.command .Values.georchestra.webapps.mapstore.args -}}
{{ if and $webapp.command $webapp.args -}}
command:
{{- range .Values.georchestra.webapps.mapstore.command }}
{{- range $webapp.command }}
- {{ . }}
{{- end }}
args:
{{- range .Values.georchestra.webapps.mapstore.args }}
{{- range $webapp.args }}
- {{ . }}
{{- end }}
{{- end }}
Expand Down
3 changes: 2 additions & 1 deletion templates/mapstore/mapstore-pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.mapstore.enabled -}}
{{- $webapp := .Values.georchestra.webapps.mapstore -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
Expand Down
3 changes: 2 additions & 1 deletion templates/mapstore/mapstore-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.mapstore.enabled -}}
{{- $webapp := .Values.georchestra.webapps.mapstore -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
4 changes: 2 additions & 2 deletions templates/security-proxy/security-proxy-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{{- if .Values.georchestra.webapps.proxy.enabled -}}
{{- $webapp := .Values.georchestra.webapps.proxy -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand Down Expand Up @@ -34,7 +34,7 @@ spec:
{{- end }}
initContainers:
{{ include "georchestra.bootstrap_georchestra_datadir" . | nindent 6 }}
{{- if .Values.georchestra.webapps.proxy.envsubst.enabled }}
{{- if $webapp.envsubst.enabled }}
- name: envsubst
image: georchestra/k8s-initcontainer-envsubst
volumeMounts:
Expand Down
3 changes: 2 additions & 1 deletion templates/security-proxy/security-proxy-svc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.webapps.proxy.enabled -}}
{{- $webapp := .Values.georchestra.webapps.proxy -}}
{{- if $webapp.enabled -}}
apiVersion: v1
kind: Service
metadata:
Expand Down
33 changes: 17 additions & 16 deletions templates/smtp-smarthost/smtp-deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{{- if .Values.georchestra.smtp_smarthost.enabled -}}
{{- $webapp := .Values.georchestra.smtp_smarthost -}}
{{- if $webapp.enabled -}}
apiVersion: apps/v1
kind: Deployment
metadata:
Expand All @@ -7,7 +8,7 @@ metadata:
{{- include "georchestra.labels" . | nindent 4 }}
app.kubernetes.io/component: {{ include "georchestra.fullname" . }}-smtp
spec:
replicas: {{ .Values.georchestra.smtp_smarthost.replicaCount }}
replicas: {{ $webapp.replicaCount }}
selector:
matchLabels:
{{- include "georchestra.selectorLabels" . | nindent 6 }}
Expand All @@ -28,32 +29,32 @@ spec:
- name: georchestra-smtp
image: camptocamp/exim:latest
env:
{{- if .Values.georchestra.smtp_smarthost.relay_host }}
{{- if $webapp.relay_host }}
- name: RELAY_HOST
value: {{ .Values.georchestra.smtp_smarthost.relay_host }}
value: {{ $webapp.relay_host }}
{{- end -}}
{{- if .Values.georchestra.smtp_smarthost.relay_port }}
{{- if $webapp.relay_port }}
- name: RELAY_PORT
value: {{ .Values.georchestra.smtp_smarthost.relay_port | quote }}
value: {{ $webapp.relay_port | quote }}
{{- end -}}
{{- if .Values.georchestra.smtp_smarthost.mailname }}
{{- if $webapp.mailname }}
- name: MAILNAME
value: {{ .Values.georchestra.smtp_smarthost.mailname }}
value: {{ $webapp.mailname }}
{{- end -}}
{{- if .Values.georchestra.smtp_smarthost.postmaster }}
{{- if $webapp.postmaster }}
- name: POSTMASTER
value: {{ .Values.georchestra.smtp_smarthost.postmaster }}
value: {{ $webapp.postmaster }}
{{- end -}}
{{- if .Values.georchestra.smtp_smarthost.relay_username }}
{{- if $webapp.relay_username }}
- name: RELAY_USERNAME
value: {{ .Values.georchestra.smtp_smarthost.relay_username }}
value: {{ $webapp.relay_username }}
{{- end -}}
{{- if .Values.georchestra.smtp_smarthost.relay_password }}
{{- if $webapp.relay_password }}
- name: RELAY_PASSWORD
value: {{ .Values.georchestra.smtp_smarthost.relay_password }}
value: {{ $webapp.relay_password }}
{{ end -}}
{{- if .Values.georchestra.smtp_smarthost.extra_environment }}
{{- .Values.georchestra.smtp_smarthost.extra_environment | toYaml | nindent 10 }}
{{- if $webapp.extra_environment }}
{{- $webapp.extra_environment | toYaml | nindent 10 }}
{{- end }}
imagePullPolicy: Always
ports:
Expand Down
Loading
Loading