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 }}