Skip to content

Commit

Permalink
Merge pull request #1041 from DSD-DBS/remove-target
Browse files Browse the repository at this point in the history
feat: Make Guacamole database persistent in development mode
  • Loading branch information
MoritzWeber0 authored Sep 26, 2023
2 parents 2da907e + f954a72 commit d66c41d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
4 changes: 0 additions & 4 deletions helm/templates/guacamole/postgres.deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@ spec:
checksum/config: {{ include (print $.Template.BasePath "/guacamole" "/postgres.configmap.yaml") . | sha256sum }}
spec:
volumes:
{{ if ne .Values.target "local" }}
- name: {{ .Release.Name }}-data
persistentVolumeClaim:
claimName: {{ .Release.Name }}-volume-guacamole-postgres
{{ end }}
- name: {{ .Release.Name }}-initsql
configMap:
name: {{ .Release.Name }}-guacamole-postgres
Expand Down Expand Up @@ -81,10 +79,8 @@ spec:
cpu: "1"
{{ end }}
volumeMounts:
{{ if ne .Values.target "local" }}
- name: {{ .Release.Name }}-data
mountPath: /var/lib/postgresql/data
{{ end }}
- name: {{ .Release.Name }}-initsql
mountPath: /docker-entrypoint-initdb.d
{{ if .Values.cluster.containers }}
Expand Down
2 changes: 0 additions & 2 deletions helm/templates/guacamole/postgres.volume.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
# SPDX-License-Identifier: Apache-2.0

{{ if .Values.database.guacamole.deploy }}
{{ if ne .Values.target "local" }}
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
Expand All @@ -19,4 +18,3 @@ spec:
storage: 1Gi
storageClassName: {{ .Values.cluster.pvc.storageClassName }}
{{ end }}
{{ end }}

0 comments on commit d66c41d

Please sign in to comment.