2025-08-24 00:09:37 +03:00

22 lines
538 B
Smarty

{{- define "tc.v1.common.lib.volsync.cache" -}}
{{- $creds := .creds -}}
{{- $rootCtx := .rootCtx -}}
{{- $objectData := .objectData -}}
{{- $volsyncData := .volsyncData -}}
{{- $target := get $volsyncData .target -}}
cacheCapacity: {{ $target.cacheCapacity | default "10Gi" }}
{{- with $target.cacheStorageClassName }}
cacheStorageClassName: {{ $target.cacheStorageClassName }}
{{- end -}}
{{- with $target.cacheAccessModes }}
cacheAccessModes:
{{- range . }}
- {{ . }}
{{- end }}
{{- end -}}
{{- end -}}