mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-06 03:33:26 +00:00
pulled kubeadm tests out of runTests to run before tests in test/cmd
Added timeout for https://github.com/kubernetes/kubeadm/issues/1430
This commit is contained in:
@@ -97,6 +97,20 @@ function create_node() {
|
||||
__EOF__
|
||||
}
|
||||
|
||||
# Run it if:
|
||||
# 1) $WHAT is empty
|
||||
# 2) $WHAT is not empty and kubeadm is part of $WHAT
|
||||
WHAT=${WHAT:-}
|
||||
if [[ ${WHAT} == "" || ${WHAT} =~ .*kubeadm.* ]] ; then
|
||||
kube::log::status "Running kubeadm tests"
|
||||
run_kubeadm_tests
|
||||
# if we ONLY want to run kubeadm, then exit here.
|
||||
if [[ ${WHAT} == "kubeadm" ]]; then
|
||||
kube::log::status "TESTS PASSED"
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
kube::log::status "Running kubectl tests for kube-apiserver"
|
||||
|
||||
setup
|
||||
|
Reference in New Issue
Block a user