Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
ab6eae36
Commit
ab6eae36
authored
May 17, 2019
by
Dr. Stefan Schimanski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hack/verify-symbols: add TrackStorageCleanup from storage testing
parent
c487eb35
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
3 deletions
+17
-3
verify-symbols.sh
hack/verify-symbols.sh
+17
-3
No files found.
hack/verify-symbols.sh
View file @
ab6eae36
...
@@ -23,7 +23,15 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
...
@@ -23,7 +23,15 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env
kube::golang::setup_env
make
-C
"
${
KUBE_ROOT
}
"
WHAT
=
cmd/hyperkube
kube::util::ensure-temp-dir
OUTPUT
=
"
${
KUBE_TEMP
}
"
/symbols-output
cleanup
()
{
rm
-rf
"
${
OUTPUT
}
"
}
trap
"cleanup"
EXIT SIGINT
mkdir
-p
"
${
OUTPUT
}
"
GOLDFLAGS
=
"-w"
make
-C
"
${
KUBE_ROOT
}
"
WHAT
=
cmd/hyperkube
# Add other BADSYMBOLS here.
# Add other BADSYMBOLS here.
BADSYMBOLS
=(
BADSYMBOLS
=(
...
@@ -31,14 +39,20 @@ BADSYMBOLS=(
...
@@ -31,14 +39,20 @@ BADSYMBOLS=(
"testify"
"testify"
"testing[.]"
"testing[.]"
"TestOnlySetFatalOnDecodeError"
"TestOnlySetFatalOnDecodeError"
"TrackStorageCleanup"
)
)
# b/c hyperkube binds everything simply check that for bad symbols
# b/c hyperkube binds everything simply check that for bad symbols
SYMBOLS
=
"
$(
go tool nm
"
${
KUBE_OUTPUT_HOSTBIN
}
/hyperkube"
)
"
go tool nm
"
${
KUBE_OUTPUT_HOSTBIN
}
/hyperkube"
>
"
${
OUTPUT
}
/hyperkube-symbols"
if
!
grep
-q
"NewHyperKubeCommand"
"
${
OUTPUT
}
/hyperkube-symbols"
;
then
echo
"No symbols found in hyperkube binary."
exit
1
fi
RESULT
=
0
RESULT
=
0
for
BADSYMBOL
in
"
${
BADSYMBOLS
[@]
}
"
;
do
for
BADSYMBOL
in
"
${
BADSYMBOLS
[@]
}
"
;
do
if
FOUND
=
$(
echo
"
${
SYMBOLS
}
"
|
grep
"
${
BADSYMBOL
}
"
)
;
then
if
FOUND
=
$(
grep
"
${
BADSYMBOL
}
"
<
"
${
OUTPUT
}
/hyperkube-symbols
"
)
;
then
echo
"Found bad symbol '
${
BADSYMBOL
}
':"
echo
"Found bad symbol '
${
BADSYMBOL
}
':"
echo
"
$FOUND
"
echo
"
$FOUND
"
RESULT
=
1
RESULT
=
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment