Use git shallow clone when applying configuration from GitHub url #1031
Labels
kind/feature
Categorizes issue or PR as related to a new feature.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What would you like to be added:
When applying a configuration using a direct GitHub url, it appears to be cloning the entire git repository which depending on the project can cause delays (and in some cases timeout) during the operation. An example is applying the Kustomization for the CSI driver for Amazon EBS as follows
For this particular environment, the WAN is very limited and cloning the entire git repository times. When using a git shallow clone (i.e.
git clone --depth=1
) only the branch is checked out and the clone operation succeeds in a few seconds.Why is this needed:
Projects increasingly rely on pulling software install packages directly from GitHub rather than a package management system and it causes significant delays cloning an entire repository to obtain these files needed for install. Since only a specific branch or tag is required when applying a configuration using the
kubectl
command, the git operation should be using a shallow clone to speed up the process.The text was updated successfully, but these errors were encountered: