Skip to content

Commit

Permalink
fix rm before git clone + fix volumes for geoserver-lb
Browse files Browse the repository at this point in the history
  • Loading branch information
edevosc2c committed Mar 22, 2024
1 parent 98f1ec6 commit fe2501e
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion cadastrapp/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A Helm chart for deploying geOrchestra's cadastrapp

type: application

version: 0.2.2
version: 0.2.3

# Last version released on https://github.com/georchestra/cadastrapp is 2.0
appVersion: "2.0.0"
2 changes: 1 addition & 1 deletion cadastrapp/templates/cadastrapp-depl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ spec:
cp /ssh-secret/ssh-privatekey /root/.ssh/id_rsa ;
chmod 0600 /root/.ssh/id_rsa ;
{{- end }}
rm -Rf /etc/georchestra
rm -Rf /etc/georchestra ;
git clone {{ .Values.cadastrapp.datadir.git.url }} -b {{ .Values.cadastrapp.datadir.git.ref }} /etc/georchestra
env:
{{- if .Values.cadastrapp.datadir.git.ssh_secret }}
Expand Down
2 changes: 1 addition & 1 deletion geoserver-lb/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ name: geoserver-lb
apiVersion: v2
description: A Helm chart for deploying geoserver loadbalanced
type: application
version: 0.6.1
version: 0.6.2
appVersion: "22.0.4"
2 changes: 1 addition & 1 deletion geoserver-lb/templates/geoserver-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
- mkdir -p /root/.ssh ;
cp /ssh-secret/ssh-privatekey /root/.ssh/id_rsa ;
chmod 0600 /root/.ssh/id_rsa ;
rm -Rf /etc/georchestra
rm -Rf /etc/georchestra ;
if [ ! -f /etc/georchestra/default.properties ] ; then
git clone {{ .Values.geoserver.git.repository_url }} -b {{ .Values.geoserver.git.branch }} /etc/georchestra ;
fi ;
Expand Down
11 changes: 4 additions & 7 deletions geoserver-lb/templates/geoserver-lb-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,8 @@ spec:
mountPath: /var/cache/nginx
- name: var-run
mountPath: /var/run
{{- range .Values.geoserver.extra_volumes }}
- name: {{ .name }}
mountPath: {{ .mountPath }}
{{- if .Values.geoserver.extra_volumes }}
{{ .Values.geoserver.extra_volumes | toYaml | nindent 8 }}
{{- end }}
resources:
requests:
Expand Down Expand Up @@ -79,10 +78,8 @@ spec:
emptyDir: {}
- name: etc-nginx
emptyDir: {}
{{- range .Values.geoserver.extra_volumes }}
- name: {{ .name }}
persistentVolumeClaim:
claimName: {{ .claimName }}
{{- if .Values.geoserver.extra_volumeMounts }}
{{ .Values.geoserver.extra_volumeMounts | toYaml | nindent 10 }}
{{- end }}


Expand Down
2 changes: 1 addition & 1 deletion mviewer/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: mviewer
description: A Helm chart to deploy the mviewer stack
type: application
version: 0.2.11
version: 0.2.12
appVersion: "3.9"
maintainers:
- name: geOrchestra
Expand Down
1 change: 1 addition & 0 deletions mviewer/templates/_bootstrap-mviewer-configuration.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
cp /ssh-secret/ssh-privatekey /root/.ssh/id_rsa ;
chmod 0600 /root/.ssh/id_rsa ;
{{- end }}
rm -Rf /usr/share/nginx/html/apps ;
git clone --depth 1 --single-branch {{ .Values.configuration.git.url }} -b {{ .Values.configuration.git.ref }} /usr/share/nginx/html/apps ;
{{- if .Values.configuration.git.ssh_secret }}
env:
Expand Down

0 comments on commit fe2501e

Please sign in to comment.