better comment

pull/9674/head
Sharif Elgamal 2020-11-11 13:37:40 -08:00
parent b23cb6c20d
commit c01e106b48
1 changed files with 2 additions and 1 deletions

View File

@ -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)