Skip to content

Commit 050569c

Browse files
committed
deploy_csv.sh - only to running pods
Signed-off-by: itamar <[email protected]>
1 parent 9db40ab commit 050569c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

deploy_csv.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ path="$3"
4040

4141
#Get Master pod details
4242

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

0 commit comments

Comments
 (0)