Closed alex-vmw closed 11 months ago
I agree, bad naming. It should have been attempts
probably. But since 0
attempts doesn't make sense, and not to break the compatibility, I agree that we should change it the way you suggest - essentially to do...while
semantics.
Describe the bug For me
retries
meansall tries after the initial try
. That said, the current logic ofuntil [ "$n" -ge "$retries" ]
in https://github.com/utkuozdemir/pv-migrate/blob/master/helm/pv-migrate/templates/rsync/job.yaml seems flawed, since ifn=0
andretries=0
the initial rsync run will never execute.To Reproduce Steps to reproduce the behavior:
--helm-set rsync.maxRetries=0
Expected behavior For me
retries
meansall tries after the initial try
, so the expected behavior is to always run rsync once even when--helm-set rsync.maxRetries=0
is specified.Console output
Version
pv-migrate
version and architecture [v1.6.1 - darwin_x86_64
]homebrew
]Additional context I think we should change
until [ "$n" -ge "$retries" ]
towhile [ "$n" -le "$retries" ]
that way rsync will always execute once even when--helm-set rsync.maxRetries=0
is specified.