_persistence.tpl 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. {{- define "pgadmin.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. type: {{ .Values.pgadminStorage.config.type }}
  6. datasetName: {{ .Values.pgadminStorage.config.datasetName | default "" }}
  7. hostPath: {{ .Values.pgadminStorage.config.hostPath | default "" }}
  8. targetSelector:
  9. pgadmin:
  10. pgadmin:
  11. mountPath: /var/lib/pgadmin
  12. 01-permissions:
  13. mountPath: /mnt/directories/pgadmin
  14. tmp:
  15. enabled: true
  16. type: emptyDir
  17. targetSelector:
  18. pgadmin:
  19. pgadmin:
  20. mountPath: /tmp
  21. {{- range $idx, $storage := .Values.pgadminStorage.additionalStorages }}
  22. {{ printf "pgadmin-%v" (int $idx) }}:
  23. enabled: true
  24. type: {{ $storage.type }}
  25. datasetName: {{ $storage.datasetName | default "" }}
  26. hostPath: {{ $storage.hostPath | default "" }}
  27. targetSelector:
  28. pgadmin:
  29. pgadmin:
  30. mountPath: {{ $storage.mountPath }}
  31. 01-permissions:
  32. mountPath: /mnt/directories{{ $storage.mountPath }}
  33. {{- end }}
  34. {{- if .Values.pgadminNetwork.certificateID }}
  35. cert:
  36. enabled: true
  37. type: secret
  38. objectName: pgadmin-cert
  39. defaultMode: "0600"
  40. items:
  41. - key: tls.key
  42. path: server.key
  43. - key: tls.crt
  44. path: server.cert
  45. targetSelector:
  46. pgadmin:
  47. pgadmin:
  48. mountPath: /certs
  49. readOnly: true
  50. scaleCertificate:
  51. pgadmin-cert:
  52. enabled: true
  53. id: {{ .Values.pgadminNetwork.certificateID }}
  54. {{- end }}
  55. {{- end -}}