Files
Kjeld Schouten f1810d6521 Update _cache.tpl
2024-06-17 12:57:26 +02:00

24 lines
588 B
Smarty

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