chore(tests): install kubectl using apt-get in test script
@@ -70,7 +70,11 @@ fi
# If Kubernetes, install kubectl component
if [[ $ENVIRONMENT == *"kubernetes"* ]]; then
- gcloud components install kubectl -q
+ curl -LO "https://dl.k8s.io/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl.sha256"
+ chmod +x kubectl
+ mkdir -p ~/.local/bin
+ mv ./kubectl ~/.local/bin
+ export PATH=$PATH:/.local/bin/
fi
# Run the environment test for the specified GCP service
