kubectl cp might fail for larger transfers. Previous fix was to downgrade to kubectl 1.19. Recent kubectl versions support the flag --retries which retries the transfer if an error happens.
The MR will check the kubectl version and use the retries flag if kubectl has support for it.
kubectl cp might fail for larger transfers. Previous fix was to downgrade to kubectl 1.19. Recent kubectl versions support the flag
--retries
which retries the transfer if an error happens.The MR will check the kubectl version and use the retries flag if kubectl has support for it.
Original kubectl issue: https://github.com/kubernetes/kubernetes/issues/60140