mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-19 09:52:49 +00:00
disable SC2120 on functions with optional parameters
https://www.shellcheck.net/wiki/SC2120#exceptions
This commit is contained in:
parent
239b3338e9
commit
bf3df26efd
@ -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...."
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user