Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add cluster for a fallback test #122

Merged
merged 4 commits into from
Aug 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .kokoro/psm_interop_kokoro_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ psm::dualstack::run_test() {

#######################################
# Fallback Test Suite setup.
#
# This test does not need GKE so setting variable to skip some init
#######################################
psm::fallback::setup() {
: # Placeholder for future setup commands
NO_GKE_CLUSTER=1
}

#######################################
Expand Down Expand Up @@ -911,6 +913,10 @@ gcloud_gcr_list_image_tags() {
# Writes authorization info $HOME/.kube/config
#######################################
gcloud_get_cluster_credentials() {
if [[ -n "${NO_GKE_CLUSTER}" ]]; then
psm::tools::log "Skipping cluster credentials"
return
fi
# Secondary cluster, when set.
if [[ -n "${SECONDARY_GKE_CLUSTER_NAME}" && -n "${SECONDARY_GKE_CLUSTER_ZONE}" ]]; then
gcloud container clusters get-credentials "${SECONDARY_GKE_CLUSTER_NAME}" --zone "${SECONDARY_GKE_CLUSTER_ZONE}"
Expand Down
Loading