mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
fix kube::golang::is_instrumented_package
This commit is contained in:
parent
094938895a
commit
0833a9cc38
@ -496,7 +496,8 @@ kube::golang::outfile_for_binary() {
|
|||||||
# Returns 0 if the binary can be built with coverage, 1 otherwise.
|
# Returns 0 if the binary can be built with coverage, 1 otherwise.
|
||||||
# NB: this ignores whether coverage is globally enabled or not.
|
# NB: this ignores whether coverage is globally enabled or not.
|
||||||
kube::golang::is_instrumented_package() {
|
kube::golang::is_instrumented_package() {
|
||||||
return "$(kube::util::array_contains "$1" "${KUBE_COVERAGE_INSTRUMENTED_PACKAGES[@]}")"
|
kube::util::array_contains "$1" "${KUBE_COVERAGE_INSTRUMENTED_PACKAGES[@]}"
|
||||||
|
return $?
|
||||||
}
|
}
|
||||||
|
|
||||||
# Argument: the name of a Kubernetes package (e.g. k8s.io/kubernetes/cmd/kube-scheduler)
|
# Argument: the name of a Kubernetes package (e.g. k8s.io/kubernetes/cmd/kube-scheduler)
|
||||||
|
Loading…
Reference in New Issue
Block a user