From 8b34c8d568cf2f73aaf62784bca2cb3b5a3cd78d Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Wed, 4 Nov 2020 10:03:35 -0600 Subject: [PATCH] ci: vfio: update kubectl exec 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 --- integration/kubernetes/vfio.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/integration/kubernetes/vfio.sh b/integration/kubernetes/vfio.sh index ae60a5848..e40d96752 100755 --- a/integration/kubernetes/vfio.sh +++ b/integration/kubernetes/vfio.sh @@ -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