factorial-io / phabalicious

Supports your deployments and every-day devops-tasks
http://docs.phab.io
MIT License
18 stars 3 forks source link

Add support for kubectl --retries flag to circumvent failing filetransfers #305

Closed stmh closed 1 year ago

stmh commented 1 year ago

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