Skip to content

Commit c01e106

Browse files
committed
better comment
1 parent b23cb6c commit c01e106

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/addons/gcpauth/enable.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ func enableAddon(cfg *config.ClusterConfig) error {
6666
}
6767

6868
if creds.JSON == nil {
69-
// If we're in a special environment, the creds file goes in a special place.
69+
// Cloud Shell sends credential files to an unusual location, let's check that location
70+
// For example, CLOUDSDK_CONFIG=/tmp/tmp.cflmvysoQE
7071
if e := os.Getenv("CLOUDSDK_CONFIG"); e != "" {
7172
credFile := path.Join(e, "application_default_credentials.json")
7273
b, err := ioutil.ReadFile(credFile)

0 commit comments

Comments
 (0)