From d8e366be6d85cb75a7c800ac2dea70bf520453bc Mon Sep 17 00:00:00 2001 From: Kjeld Schouten Date: Mon, 29 Apr 2024 23:20:39 +0200 Subject: [PATCH] Update _replicationDestination.tpl --- .../templates/class/volsync/_replicationDestination.tpl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/library/common/templates/class/volsync/_replicationDestination.tpl b/library/common/templates/class/volsync/_replicationDestination.tpl index 95516c00..621d91a3 100644 --- a/library/common/templates/class/volsync/_replicationDestination.tpl +++ b/library/common/templates/class/volsync/_replicationDestination.tpl @@ -38,8 +38,12 @@ spec: {{ $volsyncData.type }}: repository: {{ $volsyncData.repository }} copyMethod: {{ $volsyncData.copyMethod | default "Snapshot"}} - {{- with $volsyncData.dest.capacity }} + {{- if $volsyncData.dest.capacity }} capacity: {{ $volsyncData.dest.capacity }} + {{- else if $objectData.size }} + capacity: {{ $objectData.size }} + {{- else -}} + capacity: {{ $rootCtx.Values.fallbackDefaults.pvcSize }} {{- end }} {{- include "tc.v1.common.lib.volsync.storage" (dict "rootCtx" $rootCtx "objectData" $objectData "volsyncData" $volsyncData "target" "dest") | trim | nindent 4 }}