Skip to content

Commit

Permalink
deploy_csv.sh - only to running pods
Browse files Browse the repository at this point in the history
  • Loading branch information
itamarco committed May 25, 2020
1 parent 9db40ab commit 9c1a65f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deploy_csv.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ path="$3"

#Get Master pod details

kubectl -n $namespace get po | grep jmeter-slave | awk '{print $1}' | while read -r slave_pod ; do
kubectl -n $namespace get po | grep jmeter-slave | grep Running | awk '{print $1}' | while read -r slave_pod ; do
echo "Deploying $csv_name to: $slave_pod"
kubectl -n $namespace cp "$csv" "$slave_pod:$path/$csv_name"
done
Expand Down

0 comments on commit 9c1a65f

Please sign in to comment.