Skip to content

Commit

Permalink
[Backport] [v1.40.x] kokoro: source test driver install script from c…
Browse files Browse the repository at this point in the history
…ore repo (#4825) (#4871)
  • Loading branch information
temawi committed Oct 14, 2021
1 parent 167ff97 commit de6336b
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 372 deletions.
13 changes: 8 additions & 5 deletions test/kokoro/xds_k8s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ set -eo pipefail

# Constants
readonly GITHUB_REPOSITORY_NAME="grpc-go"
# GKE Cluster
readonly GKE_CLUSTER_NAME="interop-test-psm-sec-v2-us-central1-a"
readonly GKE_CLUSTER_ZONE="us-central1-a"
readonly TEST_DRIVER_INSTALL_SCRIPT_URL="https://raw.githubusercontent.com/${TEST_DRIVER_REPO_OWNER:-grpc}/grpc/${TEST_DRIVER_BRANCH:-master}/tools/internal_ci/linux/grpc_xds_k8s_install_test_driver.sh"
## xDS test server/client Docker images
readonly SERVER_IMAGE_NAME="gcr.io/grpc-testing/xds-interop/go-server"
readonly CLIENT_IMAGE_NAME="gcr.io/grpc-testing/xds-interop/go-client"
Expand Down Expand Up @@ -129,8 +127,13 @@ run_test() {
main() {
local script_dir
script_dir="$(dirname "$0")"
# shellcheck source=test/kokoro/xds_k8s_install_test_driver.sh
source "${script_dir}/xds_k8s_install_test_driver.sh"

# Source the test driver from the master branch.
echo "Sourcing test driver install script from: ${TEST_DRIVER_INSTALL_SCRIPT_URL}"
source /dev/stdin <<< "$(curl -s "${TEST_DRIVER_INSTALL_SCRIPT_URL}")"

activate_gke_cluster GKE_CLUSTER_PSM_SECURITY

set -x
if [[ -n "${KOKORO_ARTIFACTS_DIR}" ]]; then
kokoro_setup_test_driver "${GITHUB_REPOSITORY_NAME}"
Expand Down
362 changes: 0 additions & 362 deletions test/kokoro/xds_k8s_install_test_driver.sh

This file was deleted.

0 comments on commit de6336b

Please sign in to comment.