Skip to content

Commit

Permalink
Use ENDPOINT_OPTION (#2731)
Browse files Browse the repository at this point in the history
  • Loading branch information
orsenthil authored Dec 29, 2023
1 parent a09272e commit 630b53f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions scripts/run-static-canary.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,9 @@ GINKGO_TEST_BUILD="$SCRIPT_DIR/../test/build"
# TEST_IMAGE_REGISTRY is the registry in test-infra-* accounts where e2e test images are stored
TEST_IMAGE_REGISTRY=${TEST_IMAGE_REGISTRY:-"617930562442.dkr.ecr.us-west-2.amazonaws.com"}

# If $ENDPOINT is set, as in it is for beta clusters, then add the --endpoint flag to the ginkgo test command
ENDPOINT_FLAG=""
if [ -n "$ENDPOINT" ]; then
ENDPOINT_FLAG="--eks-endpoint=$ENDPOINT"
fi

# If $ENDPOINT is set, as in it is for beta clusters then $ENDPOINT_OPTION,
# defined in lib/cluster.sh will add --eks-endpoint=$ENDPOINT to the ginkgo
# test command

source "$SCRIPT_DIR"/lib/cluster.sh
source "$SCRIPT_DIR"/lib/canary.sh
Expand All @@ -32,7 +29,7 @@ function run_ginkgo_test() {
--ng-name-label-key="kubernetes.io/os" \
--ng-name-label-val="linux" \
--test-image-registry=$TEST_IMAGE_REGISTRY \
"$ENDPOINT_FLAG")
$ENDPOINT_OPTION)
}

load_cluster_details
Expand Down

0 comments on commit 630b53f

Please sign in to comment.