Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
ci: vfio: update kubectl exec
Browse files Browse the repository at this point in the history
kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a
future version.
Use kubectl kubectl exec [POD] -- [COMMAND] instead.

fixes #3027

Signed-off-by: Julio Montes <julio.montes@intel.com>
  • Loading branch information
Julio Montes committed Nov 4, 2020
1 parent e56537f commit 8b34c8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions integration/kubernetes/vfio.sh
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ run_test() {
sudo -E kubectl wait --for=condition=Ready pod "${pod_name}"

# Expecting 2 network interaces -> 2 mac addresses
mac_addrs=$(sudo -E kubectl exec -ti "${pod_name}" ip a | grep "link/ether" | wc -l)
mac_addrs=$(sudo -E kubectl exec -t "${pod_name}" -- ip a | grep "link/ether" | wc -l)
if [ ${mac_addrs} -ne 2 ]; then
die "Error: expecting 2 network interfaces, Got: $(kubectl exec -ti "${pod_name}" ip a)"
die "Error: expecting 2 network interfaces, Got: $(kubectl exec -t "${pod_name}" -- ip a)"
else
info "Success: found 2 network interfaces"
fi
Expand Down

0 comments on commit 8b34c8d

Please # to comment.