_persistence.tpl 1004 B

123456789101112131415161718192021222324252627282930313233
  1. {{- define "rust.persistence" -}}
  2. persistence:
  3. data:
  4. enabled: true
  5. type: {{ .Values.rustStorage.data.type }}
  6. datasetName: {{ .Values.rustStorage.data.datasetName | default "" }}
  7. hostPath: {{ .Values.rustStorage.data.hostPath | default "" }}
  8. targetSelector:
  9. server:
  10. server:
  11. mountPath: /root
  12. 01-permissions:
  13. mountPath: /mnt/directories/data
  14. relay:
  15. relay:
  16. mountPath: /root
  17. {{- range $idx, $storage := .Values.rustStorage.additionalStorages }}
  18. {{ printf "rust-%v" (int $idx) }}:
  19. enabled: true
  20. type: {{ $storage.type }}
  21. datasetName: {{ $storage.datasetName | default "" }}
  22. hostPath: {{ $storage.hostPath | default "" }}
  23. targetSelector:
  24. server:
  25. server:
  26. mountPath: {{ $storage.mountPath }}
  27. 01-permissions:
  28. mountPath: /mnt/directories{{ $storage.mountPath }}
  29. relay:
  30. relay:
  31. mountPath: {{ $storage.mountPath }}
  32. {{- end }}
  33. {{- end -}}