Last active
August 3, 2022 10:16
-
-
Save incfly/ccfb614e65a3a87c2074a28cca004227 to your computer and use it in GitHub Desktop.
script to run istio multiplex e2e test
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function setup() { | |
export NS="istio-system" | |
# export TAG=$(awk 'FNR == 2 {print substr($0,5) } ' .istio.mk) | |
export TAG="multi-0610-a" | |
export HUB="gcr.io/jianfeih-test" | |
echo $NS, $TAG | |
} | |
function remove_ns() { | |
setup | |
kc delete ns $NS | |
while kc get ns | grep -q $NS; do | |
echo "waiting for the deletion"; sleep 3; | |
done | |
} | |
function run_e2e() { | |
setup | |
TAG=$TAG ISTIO_PROXY_IMAGE=proxyv2 \ | |
make e2e_pilotv2_v1alpha3 \ | |
E2E_ARGS='--auth_enable=false -run=".*Multiplex.*" --skip_cleanup=true --skip_setup=false --namespace=istio-system HUB="gcr.io/jianfeih-test" --v1alpha1=false --v1alpha3=true' | |
} | |
function build_image() { | |
setup | |
make && make docker && make docker.push | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How to use the script
Checkout the implementation:
Build the images and run the test
build_images && run_e2e
Re-apply the authn policy and destination rule
Get the pilot lds output