From e4213f6eb64e6e57d9be2d92e0b4bc051ab22a93 Mon Sep 17 00:00:00 2001 From: Ta-Ching Chen Date: Tue, 2 Oct 2018 22:07:03 +0800 Subject: [PATCH] Fix flag not found problem when running canary demo scripts (#914) --- demos/canary-rollback-scenario/run.sh | 2 +- demos/canary-successful-scenario/run.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/canary-rollback-scenario/run.sh b/demos/canary-rollback-scenario/run.sh index cea27e88..6202da22 100755 --- a/demos/canary-rollback-scenario/run.sh +++ b/demos/canary-rollback-scenario/run.sh @@ -17,7 +17,7 @@ desc "Create a route \(HTTP trigger\) the version-1 of the function with weight run "fission route create --name route-fail --method GET --url /fail --function fn1-v6 --weight 100 --function fn1-v7 --weight 0" desc "Create a canary config to gradually increment the weight of version-2 by a step of 20 every 1 minute" -run "fission canary-config create --name canary-2 --funcN fn1-v7 --funcN-1 fn1-v6 --trigger route-fail --increment-step 30 --increment-interval 30s --failure-threshold 10" +run "fission canary-config create --name canary-2 --funcN fn1-v7 --funcN-1 fn1-v6 --httptrigger route-fail --increment-step 30 --increment-interval 30s --failure-threshold 10" desc "Fire requests to the route" run "ab -n 10000 -c 1 http://$FISSION_ROUTER/fail" \ No newline at end of file diff --git a/demos/canary-successful-scenario/run.sh b/demos/canary-successful-scenario/run.sh index 7e8f3e71..2bdc08f6 100755 --- a/demos/canary-successful-scenario/run.sh +++ b/demos/canary-successful-scenario/run.sh @@ -27,7 +27,7 @@ desc "Create a route \(HTTP trigger\) the version-1 of the function with weight run "fission route create --name route-hello --method GET --url /hello --function fn1-v5 --weight 0 --function fn1-v4 --weight 100" desc "Create a canary config to gradually increment the weight of version-2 by a step of 20 every 1 minute" -run "fission canary-config create --name canary-1 --funcN fn1-v5 --funcN-1 fn1-v4 --trigger route-hello --increment-step 30 --increment-interval 30s --failure-threshold 10" +run "fission canary-config create --name canary-1 --funcN fn1-v5 --funcN-1 fn1-v4 --httptrigger route-hello --increment-step 30 --increment-interval 30s --failure-threshold 10" desc "Fire requests to the route" run "ab -n 10000 -c 1 http://$FISSION_ROUTER/hello"