_persistence.tpl 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {{- define "omada.persistence" -}}
  2. persistence:
  3. data:
  4. enabled: true
  5. type: {{ .Values.omadaStorage.data.type }}
  6. datasetName: {{ .Values.omadaStorage.data.datasetName | default "" }}
  7. hostPath: {{ .Values.omadaStorage.data.hostPath | default "" }}
  8. targetSelector:
  9. omada:
  10. omada:
  11. mountPath: /opt/tplink/EAPController/data
  12. 01-permissions:
  13. mountPath: /mnt/directories/data
  14. logs:
  15. enabled: true
  16. type: {{ .Values.omadaStorage.logs.type }}
  17. datasetName: {{ .Values.omadaStorage.logs.datasetName | default "" }}
  18. hostPath: {{ .Values.omadaStorage.logs.hostPath | default "" }}
  19. targetSelector:
  20. omada:
  21. omada:
  22. mountPath: /opt/tplink/EAPController/logs
  23. 01-permissions:
  24. mountPath: /mnt/directories/logs
  25. tmp:
  26. enabled: true
  27. type: emptyDir
  28. targetSelector:
  29. omada:
  30. omada:
  31. mountPath: /tmp
  32. {{- range $idx, $storage := .Values.omadaStorage.additionalStorages }}
  33. {{ printf "omada-%v" (int $idx) }}:
  34. enabled: true
  35. type: {{ $storage.type }}
  36. datasetName: {{ $storage.datasetName | default "" }}
  37. hostPath: {{ $storage.hostPath | default "" }}
  38. targetSelector:
  39. omada:
  40. omada:
  41. mountPath: {{ $storage.mountPath }}
  42. 01-permissions:
  43. mountPath: /mnt/directories{{ $storage.mountPath }}
  44. {{- end -}}
  45. {{- if .Values.omadaNetwork.certificateID }}
  46. cert:
  47. enabled: true
  48. type: secret
  49. objectName: omada-cert
  50. defaultMode: "0600"
  51. items:
  52. - key: tls.key
  53. path: tls.key
  54. - key: tls.crt
  55. path: tls.crt
  56. targetSelector:
  57. omada:
  58. omada:
  59. mountPath: /cert
  60. readOnly: true
  61. scaleCertificate:
  62. omada-cert:
  63. enabled: true
  64. id: {{ .Values.omadaNetwork.certificateID }}
  65. {{- end -}}
  66. {{- end -}}