Merge remote-tracking branch 'upstream/master' into test-cmd-what

This commit is contained in:
Thomas Runyon
2019-02-21 11:35:23 -05:00
2178 changed files with 165324 additions and 115279 deletions

View File

@@ -41,7 +41,7 @@ function run_kube_apiserver() {
AUTHORIZATION_MODE="RBAC,AlwaysAllow"
# Enable features
ENABLE_FEATURE_GATES="DryRun=true"
ENABLE_FEATURE_GATES="ServerSideApply=true"
"${KUBE_OUTPUT_HOSTBIN}/kube-apiserver" \
--insecure-bind-address="127.0.0.1" \

View File

@@ -83,7 +83,7 @@ checkEtcdOnPath() {
kube::log::status "Checking etcd is on PATH"
which etcd && return
kube::log::status "Cannot find etcd, cannot run integration tests."
kube::log::status "Please see https://github.com/kubernetes/community/blob/master/contributors/devel/testing.md#install-etcd-dependency for instructions."
kube::log::status "Please see https://git.k8s.io/community/contributors/devel/sig-testing/testing.md#install-etcd-dependency for instructions."
kube::log::usage "You can use 'hack/install-etcd.sh' to install a copy in third_party/."
return 1
}

View File

@@ -188,6 +188,10 @@ if [[ -n "${KUBE_JUNIT_REPORT_DIR}" ]] ; then
go_test_grep_pattern="^[^[:space:]]\+[[:space:]]\+[^[:space:]]\+/[^[[:space:]]\+"
fi
if [[ -n "${FULL_LOG:-}" ]] ; then
go_test_grep_pattern=".*"
fi
# Filter out arguments that start with "-" and move them to goflags.
testcases=()
for arg; do
@@ -223,6 +227,10 @@ verifyAndSuggestPackagePath() {
local original_package_path="$3"
local suggestion_package_path="$4"
if [[ "${specified_package_path}" =~ '/...'$ ]]; then
specified_package_path=${specified_package_path::-4}
fi
if ! [ -d "${specified_package_path}" ]; then
# Because k8s sets a localized $GOPATH for testing, seeing the actual
# directory can be confusing. Instead, just show $GOPATH if it exists in the