Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
fix(demo/deploy-bookbuyer): add sleep duration env variable to bookbu…
Browse files Browse the repository at this point in the history
…yer deployment (#1442)

Add sleep duration environment variable to deploy bookbuyer and .env.example
  • Loading branch information
Jont828 authored Aug 11, 2020
1 parent fa45916 commit 67476c3
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ export BOOKWAREHOUSE_NAMESPACE=bookwarehouse
# optional: Maximum of iterations to test for expected return codes. 0 means unlimited.
# export CI_MAX_ITERATIONS_THRESHOLD=0

# optional: Time in seconds that a bookbuyer sleeps between requests.
# Default: 1
# export CI_SLEEP_BETWEEN_REQUESTS_SECONDS=1

# optional: Whether to deploy traffic split policy or not
# Default: true
# export DEPLOY_TRAFFIC_SPLIT=true
Expand Down
3 changes: 3 additions & 0 deletions demo/deploy-bookbuyer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ CI_MAX_ITERATIONS_THRESHOLD="${CI_MAX_ITERATIONS_THRESHOLD:-0}"
CI_CLIENT_CONCURRENT_CONNECTIONS="${CI_CLIENT_CONCURRENT_CONNECTIONS:-1}"
ENABLE_EGRESS="${ENABLE_EGRESS:-false}"
EGRESS_EXPECTED_RESPONSE_CODE="${EGRESS_EXPECTED_RESPONSE_CODE:-404}"
CI_SLEEP_BETWEEN_REQUESTS_SECONDS="${CI_SLEEP_BETWEEN_REQUESTS_SECONDS:-1}"

kubectl delete deployment bookbuyer -n "$BOOKBUYER_NAMESPACE" --ignore-not-found

Expand Down Expand Up @@ -80,6 +81,8 @@ spec:
value: "$EGRESS_EXPECTED_RESPONSE_CODE"
- name: "CI_CLIENT_CONCURRENT_CONNECTIONS"
value: "$CI_CLIENT_CONCURRENT_CONNECTIONS"
- name: "CI_SLEEP_BETWEEN_REQUESTS_SECONDS"
value: "$CI_SLEEP_BETWEEN_REQUESTS_SECONDS"
imagePullSecrets:
- name: "$CTR_REGISTRY_CREDS_NAME"
Expand Down
1 change: 1 addition & 0 deletions demo/deploy-bookthief.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ CI_MAX_ITERATIONS_THRESHOLD="${CI_MAX_ITERATIONS_THRESHOLD:-0}"
CI_CLIENT_CONCURRENT_CONNECTIONS="${CI_CLIENT_CONCURRENT_CONNECTIONS:-1}"
ENABLE_EGRESS="${ENABLE_EGRESS:-false}"
EGRESS_EXPECTED_RESPONSE_CODE="${EGRESS_EXPECTED_RESPONSE_CODE:-404}"
CI_SLEEP_BETWEEN_REQUESTS_SECONDS="${CI_SLEEP_BETWEEN_REQUESTS_SECONDS:-1}"

kubectl delete deployment bookthief -n "$BOOKTHIEF_NAMESPACE" --ignore-not-found

Expand Down

0 comments on commit 67476c3

Please sign in to comment.