Merge pull request #113229 from BenTheElder/more-shell-tidy

more shellcheck cleanups
This commit is contained in:
Kubernetes Prow Robot 2022-10-20 22:25:50 -07:00 committed by GitHub
commit 98533290e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 1 deletions

View File

@ -150,6 +150,7 @@ kube::build::get_docker_wrapped_binaries() {
# KUBE_RSYNC_CONTAINER_NAME
# DOCKER_MOUNT_ARGS
# LOCAL_OUTPUT_BUILD_CONTEXT
# shellcheck disable=SC2120 # optional parameters
function kube::build::verify_prereqs() {
local -r require_docker=${1:-true}
kube::log::status "Verifying Prerequisites...."

View File

@ -190,6 +190,7 @@ if [[ -z "${KUBERNETES_SKIP_RELEASE_VALIDATION-}" ]]; then
if [[ ${KUBE_VERSION} =~ ${KUBE_RELEASE_VERSION_REGEX} ]]; then
# Use KUBERNETES_RELEASE_URL for Releases and Pre-Releases
# ie. 1.18.0 or 1.19.0-beta.0
# shellcheck disable=SC2269 # this line is a noop but it helps with reading
KUBERNETES_RELEASE_URL="${KUBERNETES_RELEASE_URL}"
elif [[ ${KUBE_VERSION} =~ ${KUBE_CI_VERSION_REGEX} ]]; then
# Override KUBERNETES_RELEASE_URL to point to the CI bucket;

View File

@ -656,6 +656,7 @@ function kube::util::join {
# CFSSL_BIN: The path of the installed cfssl binary
# CFSSLJSON_BIN: The path of the installed cfssljson binary
#
# shellcheck disable=SC2120 # optional parameters
function kube::util::ensure-cfssl {
if command -v cfssl &>/dev/null && command -v cfssljson &>/dev/null; then
CFSSL_BIN=$(command -v cfssl)

View File

@ -186,7 +186,7 @@ do
esac
done
if [ "x${GO_OUT}" == "x" ]; then
if [ -z "${GO_OUT}" ]; then
make -C "${KUBE_ROOT}" WHAT="cmd/kubectl cmd/kube-apiserver cmd/kube-controller-manager cmd/cloud-controller-manager cmd/kubelet cmd/kube-proxy cmd/kube-scheduler"
else
echo "skipped the build."