File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,15 @@ rm -rf ./kubernetes/; rm -f kubernetes.tar.gz; rm -f ~/.kube/config
23
23
# if you're working with multiple projects and don't want to repeatedly switch
24
24
# between gcloud config configurations.
25
25
export CLOUDSDK_CORE_PROJECT=<your_project_name>
26
+
27
+ # To run e2e test locally, make sure "Application Default Credentials" is set in any of the places:
28
+ # References: https://cloud.google.com/sdk/docs/authorizing#authorizing_with_a_service_account
29
+ # https://cloud.google.com/sdk/gcloud/reference/auth/application-default/
30
+ # 1. $HOME/.config/gcloud/application_default_credentials.json, if doesn't exist, run this command:
31
+ gcloud auth application-default login
32
+ # Or 2. Create a json format credential file as per http://cloud/docs/authentication/production,
33
+ # then export to environment variable
34
+ export GOOGLE_APPLICATION_CREDENTIAL=[path_to_the_json_file]
26
35
```
27
36
28
37
### 1. Build Kubernetes
You can’t perform that action at this time.
0 commit comments