Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix kubectl apply timeout with slow network
Cloning https://github.com/stolostron/multicloud-operators-foundation.git during `kubectl apply --kustomize` can fail with a timeout when using slow network: $ kubectl apply -k test/addons/ocm-controller --context hub error: accumulating resources: accumulation err='accumulating resources from 'https://github.com/stolostron/multicloud-operators-foundation.git/deploy/foundation/hub/overlays/ocm-controller?ref=main': URL is a git repository': hit 27s timeout running '/usr/bin/git fetch --depth=1 https://github.com/stolostron/multicloud-operators-foundation.git main' Turns out that the way to increase the timeout is to add a `timeout` query parameter[1]. Use 300 seconds to avoid random failures when using poor network. [1] kubernetes-sigs/kustomize#3742 Signed-off-by: Nir Soffer <nsoffer@redhat.com>
- Loading branch information