We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b23cb6c commit c01e106Copy full SHA for c01e106
pkg/addons/gcpauth/enable.go
@@ -66,7 +66,8 @@ func enableAddon(cfg *config.ClusterConfig) error {
66
}
67
68
if creds.JSON == nil {
69
- // 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
70
+ // For example, CLOUDSDK_CONFIG=/tmp/tmp.cflmvysoQE
71
if e := os.Getenv("CLOUDSDK_CONFIG"); e != "" {
72
credFile := path.Join(e, "application_default_credentials.json")
73
b, err := ioutil.ReadFile(credFile)
0 commit comments