mirror of
https://github.com/ansible/awx-operator.git
synced 2026-03-26 21:33:14 +00:00
* in the sclorg Postgresql 15 image, the PGDATA directory is hardcoded * if users were to modify this directory, they would only change the directory the pvc is mounted to, not the directory PostgreSQL uses. This would result in loss of data. * switch from /var/lib/pgsql/data/pgdata to /var/lib/pgsql/data/userdata
20 lines
683 B
YAML
20 lines
683 B
YAML
{{- if and (not $.Values.AWX.postgres.enabled) (eq (($.Values.AWX.spec).postgres_configuration_secret | default "") "") -}}
|
|
{{- if (($.Values.customVolumes).postgres).enabled -}}
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: {{ include "postgres.persistentVolumeName" $ }}
|
|
{{- with $.Values.customVolumes.postgres }}
|
|
spec:
|
|
accessModes:
|
|
- {{ default "ReadWriteOnce" .accessModes }}
|
|
persistentVolumeReclaimPolicy: {{ default "Retain" .reclaimPolicy | quote }}
|
|
capacity:
|
|
storage: {{ default "8Gi" .size | quote }}
|
|
storageClassName: {{ include "postgres.storageClassName" $ }}
|
|
hostPath:
|
|
path: /var/lib/pgsql/data/userdata
|
|
{{- end }}
|
|
{{- end }}
|
|
{{- end }}
|