_persistence.tpl 818 B

123456789101112131415161718192021222324252627282930
  1. {{- define "tmm.persistence" -}}
  2. persistence:
  3. data:
  4. enabled: true
  5. type: {{ .Values.tmmStorage.data.type }}
  6. datasetName: {{ .Values.tmmStorage.data.datasetName | default "" }}
  7. hostPath: {{ .Values.tmmStorage.data.hostPath | default "" }}
  8. targetSelector:
  9. tmm:
  10. tmm:
  11. mountPath: /data
  12. tmp:
  13. enabled: true
  14. type: emptyDir
  15. targetSelector:
  16. tmm:
  17. tmm:
  18. mountPath: /tmp
  19. {{- range $idx, $storage := .Values.tmmStorage.additionalStorages }}
  20. {{ printf "tmm-%v" (int $idx) }}:
  21. enabled: true
  22. type: {{ $storage.type }}
  23. datasetName: {{ $storage.datasetName | default "" }}
  24. hostPath: {{ $storage.hostPath | default "" }}
  25. targetSelector:
  26. tmm:
  27. tmm:
  28. mountPath: {{ $storage.mountPath }}
  29. {{- end }}
  30. {{- end -}}