test: fix sonobuoy delete

It expects kubeconfig as required argument.

Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
This commit is contained in:
Andrey Smirnov 2020-07-09 18:30:17 +03:00 committed by Andrey Smirnov
parent 5ecddf2866
commit 4f5660b22b

View File

@ -131,7 +131,7 @@ function run_kubernetes_integration_test {
--mode ${SONOBUOY_MODE}; do
[[ $(date +%s) -gt $timeout ]] && exit 1
echo "re-attempting to run sonobuoy"
${SONOBUOY} delete --all --wait
${SONOBUOY} delete --all --wait --kubeconfig ${KUBECONFIG}
sleep 10
done
${SONOBUOY} status --kubeconfig ${KUBECONFIG} --json | jq . | tee ${TMP}/sonobuoy-status.json