diff --git a/helm/templates/guacamole/postgres.deployment.yaml b/helm/templates/guacamole/postgres.deployment.yaml index e4441dec0..37ff91d48 100644 --- a/helm/templates/guacamole/postgres.deployment.yaml +++ b/helm/templates/guacamole/postgres.deployment.yaml @@ -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 @@ -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 }} diff --git a/helm/templates/guacamole/postgres.volume.yaml b/helm/templates/guacamole/postgres.volume.yaml index fb723dc82..224745671 100644 --- a/helm/templates/guacamole/postgres.volume.yaml +++ b/helm/templates/guacamole/postgres.volume.yaml @@ -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: @@ -19,4 +18,3 @@ spec: storage: 1Gi storageClassName: {{ .Values.cluster.pvc.storageClassName }} {{ end }} -{{ end }}