Commit cf610729 authored by Michel Roy's avatar Michel Roy
Browse files

fix pvc

parent 1db2942e
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
{{- if .Values.persistence.enabled -}}
{{- if not .Values.persistence.existingClaim -}}
apiVersion: "v1"
kind: "PersistentVolumeClaim"
metadata:
@@ -31,4 +30,3 @@ spec:
    requests:
      storage: "{{ .Values.persistence.size }}"
{{- end -}}
{{- end -}}
+2 −21
Original line number Diff line number Diff line
@@ -430,29 +430,10 @@ spec:
        - name: data
          persistentVolumeClaim:
{{- with .Values.persistence.existingClaim }}
            #claimName: {{ tpl . $ }}
            claimName: {{ template "postgresql.fullname" . }}
            claimName: {{ tpl . $ }}
{{- end }}
{{- else if not .Values.persistence.enabled }}
        - name: data
          emptyDir: {}
{{- else if and .Values.persistence.enabled (not .Values.persistence.existingClaim) }}
  volumeClaimTemplates:
    - metadata:
        name: data
      {{- with .Values.persistence.annotations }}
        annotations:
        {{- range $key, $value := . }}
          {{ $key }}: {{ $value }}
        {{- end }}
      {{- end }}
      spec:
        accessModes:
        {{- range .Values.persistence.accessModes }}
          - {{ . | quote }}
        {{- end }}
        resources:
          requests:
            storage: {{ .Values.persistence.size | quote }}
        {{ include "postgresql.storageClass" . }}
{{- end }}
+4 −4
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ image:
## volumePermissions: Change the owner of the persist volume mountpoint to RunAsUser:fsGroup
##
volumePermissions:
  enabled: false
  enabled: true
  image:
    registry: docker.io
    repository: bitnami/minideb
@@ -301,7 +301,8 @@ persistence:
  ## If defined, PVC must be created manually before volume will be bound
  ## The value is evaluated as a template, so, for example, the name can depend on .Release or .Chart
  ##
  existingClaim: false
  ## This chart has been modified to create a PVC with this name
  existingClaim: meep-postgis

  ## The path the volume will be mounted at, useful when using different
  ## PostgreSQL images.
@@ -318,7 +319,6 @@ persistence:
    - ReadWriteOnce
  size: 8Gi
  annotations: {}

  reclaimPolicy: Retain
  # location: "<WORKDIR>/postgis"
  location: "/home/englab/.meep/postgis"