-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Improve the node package list updates #17704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
8117d4c to
fa387db
Compare
|
/hold |
|
/hold |
a635d2e to
f85467e
Compare
Signed-off-by: Ciprian Hacman <[email protected]>
f85467e to
26f7013
Compare
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hakman The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| // If it is newer than 10 minutes, we skip apt-get update. | ||
| stat, err := os.Stat("/var/lib/dpkg/status") | ||
| // If the package manager update was less than 10 minutes ago, skip updating the package list. | ||
| if d.IsDebianFamily() && time.Since(packageManagerLastUpdated) > 10*time.Minute { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 10 min ? I think apt update take less than 5 min to run.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is meant to run apt-get update every 10 min (arbitrary number). I expect bootstrap to finish much faster, but seems reasonable.
|
/lgtm |
|
/override pull-kops-e2e-k8s-gce-cilium |
|
@hakman: Overrode contexts on behalf of hakman: pull-kops-e2e-k8s-gce-cilium In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Addressing code review comments from #17690.
/cc @justinsb @ameukam @rifelpet