Skip to content

Disable component checks before calling gcloud #7270

@briandealwis

Description

@briandealwis

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.

cmd := exec.Command("gcloud", "auth", "print-access-token", "--format=json")

if auth, err := google.NewGcloudAuthenticator(); err == nil {

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions