Skip to content

Commit b71ee53

Browse files
upd copying from local to pod
1 parent 1aec6a6 commit b71ee53

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/util/k8s/bzt_on_pod.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ echo "INFO: Copy latest dc-app-performance-toolkit folder to the exec env pod"
5050
start=$(date +%s)
5151
# tar only app folder, exclude results and util/k8s folder
5252
tar -czf dcapt.tar.gz -C dc-app-performance-toolkit --exclude results --exclude util/k8s app Dockerfile requirements.txt
53-
kubectl cp --retries 10 dcapt.tar.gz atlassian/"$exec_pod_name":/dcapt.tar.gz
5453
kubectl exec -it "$exec_pod_name" -n atlassian -- mkdir /dc-app-performance-toolkit
55-
kubectl exec -it "$exec_pod_name" -n atlassian -- tar -xf /dcapt.tar.gz -C /dc-app-performance-toolkit
54+
cat dcapt.tar.gz | kubectl exec -i -n atlassian "$exec_pod_name" -- tar xzf - -C /dc-app-performance-toolkit
5655
rm -rf dcapt.tar.gz
5756
end=$(date +%s)
5857
runtime=$((end-start))

0 commit comments

Comments
 (0)