From c01e106b4855d47c39524da0f66eee22322d3c8f Mon Sep 17 00:00:00 2001 From: Sharif Elgamal Date: Wed, 11 Nov 2020 13:37:40 -0800 Subject: [PATCH] better comment --- pkg/addons/gcpauth/enable.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/addons/gcpauth/enable.go b/pkg/addons/gcpauth/enable.go index d7adb78db9..a4ebf7595e 100644 --- a/pkg/addons/gcpauth/enable.go +++ b/pkg/addons/gcpauth/enable.go @@ -66,7 +66,8 @@ func enableAddon(cfg *config.ClusterConfig) error { } if creds.JSON == nil { - // If we're in a special environment, the creds file goes in a special place. + // Cloud Shell sends credential files to an unusual location, let's check that location + // For example, CLOUDSDK_CONFIG=/tmp/tmp.cflmvysoQE if e := os.Getenv("CLOUDSDK_CONFIG"); e != "" { credFile := path.Join(e, "application_default_credentials.json") b, err := ioutil.ReadFile(credFile)