diff --git a/internal/kokoro/environment.sh b/internal/kokoro/environment.sh index 9daccac6c4d6..dedffe0bca6a 100755 --- a/internal/kokoro/environment.sh +++ b/internal/kokoro/environment.sh @@ -68,6 +68,11 @@ if [[ $ENVIRONMENT == *"appengine"* ]]; then gcloud components install app-engine-go -q fi +# If Kubernetes, install kubectl component +if [[ $ENVIRONMENT == *"kubernetes"* ]]; then + gcloud components install kubectl -q +fi + # Run the environment test for the specified GCP service set +e python3.7 -m nox --session "tests(language='go', platform='$ENVIRONMENT')"