Skip to content

Commit

Permalink
Minor change in code for location of yaml file (#148)
Browse files Browse the repository at this point in the history
* Adding network-chaos to prow

* Minor changes in if loop

* Updating yaml file location
  • Loading branch information
shahsahil264 authored Oct 24, 2023
1 parent 88fca9d commit 32876a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions prow/network-chaos/prow_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ krn_loc=/root/kraken

# Substitute config with environment vars defined
if [[ $TRAFFIC_TYPE == "egress" ]]; then
envsubst < /root/kraken/scenarios/network_chaos_egress.yaml.template > $krn_loc/scenarios/network_chaos.yaml
envsubst < network-chaos/network_chaos_egress.yaml.template > network-chaos/network_chaos.yaml
elif [[ $TRAFFIC_TYPE == "ingress" ]]; then
envsubst < /root/kraken/scenarios/network_chaos_ingress.yaml.template > $krn_loc/scenarios/network_chaos.yaml
envsubst < network-chaos/network_chaos_ingress.yaml.template > network-chaos/network_chaos.yaml
export SCENARIO_TYPE="plugin_scenarios"
else
echo "Supported TRAFFIC_TYPE options are egress or ingress, please check"
Expand Down

0 comments on commit 32876a8

Please sign in to comment.