GoogleContainerTools / GoogleContainerTools/skaffold

Disable component checks before calling gcloud

Open
#7,270 1 comment 1 reaction 1 assignee Claimed by @louisjimenez View on GitHub
area/auth area/performance kind/friction kind/starter-project
Dominant language
Go
Stars
15.9k
Forks
1.7k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

`gcloud` may check for component updates on virtually all calls, which imposes unnecessary latency. We can avoid these component checks by setting `CLOUDSDK_COMPONENT_MANAGER_DISABLE_UPDATE_CHECK=1` in the environment before calling `gcloud`.

https://github.com/GoogleContainerTools/skaffold/blob/e50fc5e9411b666231cf17575f28208eff274061/pkg/skaffold/gcp/auth.go#L64
https://github.com/GoogleContainerTools/skaffold/blob/e50fc5e9411b666231cf17575f28208eff274061/pkg/skaffold/docker/authenticators.go#L89

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.