Commit a93b67fe authored by Tim St. Clair's avatar Tim St. Clair

Add and to the bad symbols check

parent 204d426d
...@@ -24,11 +24,17 @@ source "${KUBE_ROOT}/hack/lib/init.sh" ...@@ -24,11 +24,17 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env kube::golang::setup_env
# add other BADSYMBOLS here. # add other BADSYMBOLS here.
BADSYMBOLS="testing[.]" BADSYMBOLS=(
"httptest"
"testify"
"testing[.]"
)
# Join symbols with OR '\|' pattern
PATTERN="$(printf '\|%s' "${BADSYMBOLS[@]}" | tail -c +3)"
# b/c hyperkube binds everything simply check that for bad symbols # b/c hyperkube binds everything simply check that for bad symbols
if [[ $(nm ${KUBE_OUTPUT_HOSTBIN}/hyperkube | grep "${BADSYMBOLS}") ]]; then if nm ${KUBE_OUTPUT_HOSTBIN}/hyperkube | grep "${PATTERN}"; then
echo "output binaries contain bad symbols \"${BADSYMBOLS}\"" echo "output binaries contain bad symbols"
exit 1 exit 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment