blob: 2f10dda5acefc1b205297b03b569f16efa3db5cb [file] [log] [blame]
# Functions to switch between GCE and GKE projects.
set -e
function __skia_public() {
gcloud config set project skia-public > /dev/null 2>&1
gcloud container clusters get-credentials skia-public --zone us-central1-a --project skia-public > /dev/null 2>&1
}
function __skia_corp() {
gcloud config set project google.com:skia-corp > /dev/null 2>&1
gcloud container clusters get-credentials skia-corp --zone us-central1-a --project google.com:skia-corp > /dev/null 2>&1
}
function __skia_switchboard() {
gcloud config set project skia-switchboard > /dev/null 2>&1
gcloud container clusters get-credentials skia-switchboard --zone us-central1-c --project skia-switchboard > /dev/null 2>&1
}