_persistence.tpl 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. {{- define "homer.persistence" -}}
  2. persistence:
  3. assets:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.homerStorage.assets) | nindent 4 }}
  6. targetSelector:
  7. homer:
  8. homer:
  9. mountPath: /www/assets
  10. {{- if and (eq .Values.homerStorage.assets.type "ixVolume")
  11. (not (.Values.homerStorage.assets.ixVolumeConfig | default dict).aclEnable) }}
  12. 01-permissions:
  13. mountPath: /mnt/directories/assets
  14. {{- end }}
  15. tmp:
  16. enabled: true
  17. type: emptyDir
  18. targetSelector:
  19. homer:
  20. homer:
  21. mountPath: /tmp
  22. {{- range $idx, $storage := .Values.homerStorage.additionalStorages }}
  23. {{ printf "homer-%v" (int $idx) }}:
  24. enabled: true
  25. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  26. targetSelector:
  27. homer:
  28. homer:
  29. mountPath: {{ $storage.mountPath }}
  30. {{- if and (eq $storage.type "ixVolume") (not ($storage.ixVolumeConfig | default dict).aclEnable) }}
  31. 01-permissions:
  32. mountPath: /mnt/directories{{ $storage.mountPath }}
  33. {{- end }}
  34. {{- end }}
  35. {{- end -}}