Skip to content

Commit

Permalink
remove all prepare emptydir workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Jan 9, 2024
1 parent 63aa4e4 commit 7d81fd3
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 88 deletions.
25 changes: 0 additions & 25 deletions templates/cas/cas-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,27 +27,6 @@ spec:
{{- end }}
initContainers:
{{- include "georchestra.bootstrap_georchestra_datadir" . | nindent 6 }}
- name: prepare-cas-webapp
image: {{ $webapp.docker_image }}
imagePullPolicy: Always
volumeMounts:
- mountPath: /etc/georchestra
name: georchestra-datadir
- mountPath: /cas-webapp
name: cas-webapp
command:
- /bin/sh
- -c
- cp -r /var/lib/jetty/webapps/cas/* /cas-webapp ;
if [ -d /etc/georchestra/cas/themes ] ; then
cp -rvf /etc/georchestra/cas/themes /cas-webapp/WEB-INF/classes/static/ ;
fi ;
if [ -d /etc/georchestra/cas/templates ] ; then
cp -rvf /etc/georchestra/cas/templates /cas-webapp/WEB-INF/classes/ ;
fi ;
if [ -d /etc/georchestra/cas/classes_override ] ; then
cp -rvf /etc/georchestra/cas/classes_override/* /cas-webapp/WEB-INF/classes/ ;
fi
containers:
- name: georchestra-cas
image: {{ $webapp.docker_image }}
Expand All @@ -62,8 +41,6 @@ spec:
volumeMounts:
- mountPath: /etc/georchestra
name: georchestra-datadir
- mountPath: /var/lib/jetty/webapps/cas
name: cas-webapp
ports:
- containerPort: 8080
name: http-proxy
Expand All @@ -80,8 +57,6 @@ spec:
volumes:
- name: georchestra-datadir
emptyDir: {}
- name: cas-webapp
emptyDir: {}
{{- if .Values.georchestra.datadir.git.ssh_secret }}
- name: ssh-secret
secret:
Expand Down
19 changes: 0 additions & 19 deletions templates/geonetwork/geonetwork-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,6 @@ spec:
fsGroup: 999
initContainers:
{{ include "georchestra.bootstrap_georchestra_datadir" $ | nindent 6 }}
- name: prepare-geonetwork-webapp
image: {{ $webapp.docker_image }}
imagePullPolicy: Always
command:
- /bin/sh
- -c
- cp -r /var/lib/jetty/webapps/geonetwork/* /mnt/geonetwork_webapp ;
if [ -f /mnt/georchestra_datadir/geonetwork/web.xml ] ; then
cp /mnt/georchestra_datadir/geonetwork/web.xml /mnt/geonetwork_webapp/WEB-INF/web.xml ;
fi ;
volumeMounts:
- name: georchestra-datadir
mountPath: /mnt/georchestra_datadir
- name: geonetwork-webapp
mountPath: /mnt/geonetwork_webapp
- name: fix-permissions-pvc
image: busybox:latest
command: ["sh", "-c", "chown -R 999:999 /mnt/geonetwork_datadir"]
Expand Down Expand Up @@ -84,8 +69,6 @@ spec:
name: georchestra-datadir
- mountPath: /mnt/geonetwork_datadir
name: geonetwork-datadir
- mountPath: /var/lib/jetty/webapps/geonetwork
name: geonetwork-webapp
{{- if $webapp.extra_volumeMounts }}
{{ $webapp.extra_volumeMounts | toYaml | nindent 10 }}
{{- end }}
Expand Down Expand Up @@ -128,8 +111,6 @@ spec:
volumes:
- name: georchestra-datadir
emptyDir: {}
- name: geonetwork-webapp
emptyDir: {}
- name: geonetwork-datadir
persistentVolumeClaim:
claimName: {{ include "georchestra.fullname" . }}-geonetwork-datadir
Expand Down
22 changes: 0 additions & 22 deletions templates/geoserver/geoserver-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,24 +43,6 @@ spec:
fsGroup: 999
initContainers:
{{ include "georchestra.bootstrap_georchestra_datadir" . | nindent 6 }}
- name: prepare-geoserver-webapp
image: {{ $webapp.docker_image }}
imagePullPolicy: Always
command:
- /bin/sh
- -c
- cp -r /var/lib/jetty/webapps/geoserver/* /mnt/geoserver_webapp ;
if [ -f /mnt/georchestra_datadir/geoserver/jetty-env.xml ] ; then
cp /mnt/georchestra_datadir/geoserver/jetty-env.xml /mnt/geoserver_webapp/WEB-INF/jetty-env.xml ;
fi ;
if [ -f /mnt/georchestra_datadir/geoserver/web.xml ] ; then
cp /mnt/georchestra_datadir/geoserver/web.xml /mnt/geoserver_webapp/WEB-INF/web.xml ;
fi ;
volumeMounts:
- name: georchestra-datadir
mountPath: /mnt/georchestra_datadir
- name: geoserver-webapp
mountPath: /mnt/geoserver_webapp
- name: fix-permissions-pvc
image: busybox:latest
command: ["sh", "-c", "chown -R 999:999 /mnt/geoserver_datadir /mnt/geoserver_geodata /mnt/geoserver_tiles"]
Expand Down Expand Up @@ -207,8 +189,6 @@ spec:
name: geoserver-geodata
- mountPath: /mnt/geoserver_datadir
name: geoserver-datadir
- mountPath: /var/lib/jetty/webapps/geoserver
name: geoserver-webapp
- mountPath: /mnt/geoserver_tiles
name: geoserver-tiles
{{- range $webapp.extra_volumes }}
Expand Down Expand Up @@ -252,8 +232,6 @@ spec:
volumes:
- name: georchestra-datadir
emptyDir: {}
- name: geoserver-webapp
emptyDir: {}
- name: geoserver-tiles
persistentVolumeClaim:
claimName: {{ include "georchestra.fullname" . }}-geoserver-tiles
Expand Down
22 changes: 0 additions & 22 deletions templates/security-proxy/security-proxy-deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,27 +50,9 @@ spec:
{{- $webapp.extra_environment | toYaml | nindent 10 }}
{{- end }}
{{- end }}
- name: prepare-proxy-webapp
image: {{ $webapp.docker_image }}
imagePullPolicy: Always
command:
- /bin/sh
- -c
- cp -r /var/lib/jetty/webapps/ROOT/* /mnt/security_proxy_webapp ;
if [ -d /mnt/georchestra_datadir/security-proxy/ressources/ ] ; then
cp /mnt/georchestra_datadir/security-proxy/ressources/* /mnt/security_proxy_webapp/ ;
fi ;
volumeMounts:
- name: georchestra-datadir
mountPath: /mnt/georchestra_datadir
- name: security-proxy-webapp
mountPath: /mnt/security_proxy_webapp
- name: fix-permissions-pvc
image: busybox:latest
command: [ "sh", "-c", "chown -R 999:999 /mnt/security_proxy_webapp" ]
volumeMounts:
- mountPath: /mnt/security_proxy_webapp
name: security-proxy-webapp

containers:
- name: georchestra-sp
Expand All @@ -90,8 +72,6 @@ spec:
volumeMounts:
- mountPath: /etc/georchestra
name: georchestra-datadir
- mountPath: /var/lib/jetty/webapps/ROOT/
name: security-proxy-webapp
livenessProbe:
httpGet:
path: /_static/bootstrap_3.0.0/css/bootstrap-theme.min.css
Expand Down Expand Up @@ -122,8 +102,6 @@ spec:
volumes:
- name: georchestra-datadir
emptyDir: {}
- name: security-proxy-webapp
emptyDir: {}
{{- if .Values.georchestra.datadir.git.ssh_secret }}
- name: ssh-secret
secret:
Expand Down

0 comments on commit 7d81fd3

Please sign in to comment.