_persistance.tpl 464 B

1234567891011121314
  1. {{- define "cloudflared.persistence" -}}
  2. persistence:
  3. {{- range $idx, $storage := .Values.cloudflaredStorage.additionalStorages }}
  4. {{ printf "cloudflared-%v" (int $idx) }}:
  5. enabled: true
  6. type: {{ $storage.type }}
  7. datasetName: {{ $storage.datasetName | default "" }}
  8. hostPath: {{ $storage.hostPath | default "" }}
  9. targetSelector:
  10. cloudflared:
  11. cloudflared:
  12. mountPath: {{ $storage.mountPath }}
  13. {{- end }}
  14. {{- end -}}