_persistence.tpl 757 B

1234567891011121314151617181920212223242526
  1. {{- define "organizr.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.organizrStorage.config) | nindent 4 }}
  6. targetSelector:
  7. organizr:
  8. organizr:
  9. mountPath: /config
  10. varrun:
  11. enabled: true
  12. type: emptyDir
  13. targetSelector:
  14. organizr:
  15. organizr:
  16. mountPath: /var/run
  17. {{- range $idx, $storage := .Values.organizrStorage.additionalStorages }}
  18. {{ printf "organizr-%v:" (int $idx) }}
  19. enabled: true
  20. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  21. targetSelector:
  22. organizr:
  23. organizr:
  24. mountPath: {{ $storage.mountPath }}
  25. {{- end }}
  26. {{- end -}}