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
809e528d
Commit
809e528d
authored
Oct 13, 2016
by
Jeff Grafton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase build verbosity for rsync operations in verify-generated-{protobuf,runtime}.sh
parent
92ef912f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
common.sh
build/common.sh
+8
-8
verify-generated-protobuf.sh
hack/verify-generated-protobuf.sh
+1
-1
verify-generated-runtime.sh
hack/verify-generated-runtime.sh
+1
-1
No files found.
build/common.sh
View file @
809e528d
...
...
@@ -331,7 +331,7 @@ function kube::build::docker_delete_old_images() {
# docker images "$1" --format "{{.Tag}}"
for
tag
in
$(
"
${
DOCKER
[@]
}
"
images
${
1
}
|
tail
-n
+2 |
awk
'{print $2}'
)
;
do
if
[[
"
${
tag
}
"
!=
"
${
2
}
"
*
]]
;
then
V
=
6
kube::log::status
"Keeping image
${
1
}
:
${
tag
}
"
V
=
3
kube::log::status
"Keeping image
${
1
}
:
${
tag
}
"
continue
fi
...
...
@@ -339,7 +339,7 @@ function kube::build::docker_delete_old_images() {
V
=
2 kube::log::status
"Deleting image
${
1
}
:
${
tag
}
"
"
${
DOCKER
[@]
}
"
rmi
"
${
1
}
:
${
tag
}
"
>
/dev/null
else
V
=
6
kube::log::status
"Keeping image
${
1
}
:
${
tag
}
"
V
=
3
kube::log::status
"Keeping image
${
1
}
:
${
tag
}
"
fi
done
}
...
...
@@ -353,14 +353,14 @@ function kube::build::docker_delete_old_containers() {
# docker ps -a --format="{{.Names}}"
for
container
in
$(
"
${
DOCKER
[@]
}
"
ps
-a
|
tail
-n
+2 |
awk
'{print $NF}'
)
;
do
if
[[
"
${
container
}
"
!=
"
${
1
}
"
*
]]
;
then
V
=
6
kube::log::status
"Keeping container
${
container
}
"
V
=
3
kube::log::status
"Keeping container
${
container
}
"
continue
fi
if
[[
-z
"
${
2
:-}
"
||
"
${
container
}
"
!=
"
${
2
}
"
]]
;
then
V
=
2 kube::log::status
"Deleting container
${
container
}
"
kube::build::destroy_container
"
${
container
}
"
else
V
=
6
kube::log::status
"Keeping container
${
container
}
"
V
=
3
kube::log::status
"Keeping container
${
container
}
"
fi
done
}
...
...
@@ -613,7 +613,7 @@ function kube::build::rsync_probe {
# rsync daemon can be reached out.
function
kube::build::start_rsyncd_container
()
{
kube::build::stop_rsyncd_container
V
=
6
kube::log::status
"Starting rsyncd container"
V
=
3
kube::log::status
"Starting rsyncd container"
kube::build::run_build_command_ex
\
"
${
KUBE_RSYNC_CONTAINER_NAME
}
"
-p
127.0.0.1:
${
KUBE_RSYNC_PORT
}
:
${
KUBE_CONTAINER_RSYNC_PORT
}
-d
\
--
/rsyncd.sh
>
/dev/null
...
...
@@ -645,7 +645,7 @@ function kube::build::start_rsyncd_container() {
}
function
kube::build::stop_rsyncd_container
()
{
V
=
6
kube::log::status
"Stopping any currently running rsyncd container"
V
=
3
kube::log::status
"Stopping any currently running rsyncd container"
unset
KUBE_RSYNC_ADDR
kube::build::destroy_container
"
${
KUBE_RSYNC_CONTAINER_NAME
}
"
}
...
...
@@ -666,7 +666,7 @@ function kube::build::sync_to_container() {
# output only directories and things that are not necessary like the git
# directory. The '- /' filter prevents rsync from trying to set the
# uid/gid/perms on the root of the sync tree.
V
=
6
kube::log::status
"Running rsync"
V
=
3
kube::log::status
"Running rsync"
rsync
${
rsync_extra
}
\
--archive
\
--delete
\
...
...
@@ -701,7 +701,7 @@ function kube::build::copy_output() {
#
# We are looking to copy out all of the built binaries along with various
# generated files.
V
=
6
kube::log::status
"Running rsync"
V
=
3
kube::log::status
"Running rsync"
rsync
${
rsync_extra
}
\
--archive
\
--prune-empty-dirs
\
...
...
hack/verify-generated-protobuf.sh
View file @
809e528d
...
...
@@ -38,7 +38,7 @@ for APIROOT in ${APIROOTS}; do
cp
-a
-T
"
${
KUBE_ROOT
}
/
${
APIROOT
}
"
"
${
_tmp
}
/
${
APIROOT
}
"
done
"
${
KUBE_ROOT
}
/hack/update-generated-protobuf.sh"
KUBE_VERBOSE
=
3
"
${
KUBE_ROOT
}
/hack/update-generated-protobuf.sh"
for
APIROOT
in
${
APIROOTS
}
;
do
TMP_APIROOT
=
"
${
_tmp
}
/
${
APIROOT
}
"
echo
"diffing
${
APIROOT
}
against freshly generated protobuf"
...
...
hack/verify-generated-runtime.sh
View file @
809e528d
...
...
@@ -34,7 +34,7 @@ mkdir -p ${KUBE_REMOTE_RUNTIME_ROOT}/_tmp
cp
${
KUBE_REMOTE_RUNTIME_ROOT
}
/api.pb.go
${
KUBE_REMOTE_RUNTIME_ROOT
}
/_tmp/
ret
=
0
hack/update-generated-runtime.sh
KUBE_VERBOSE
=
3
"
${
KUBE_ROOT
}
/hack/update-generated-runtime.sh"
diff
-I
"gzipped FileDescriptorProto"
-I
"0x"
-Naupr
${
KUBE_REMOTE_RUNTIME_ROOT
}
/_tmp/api.pb.go
${
KUBE_REMOTE_RUNTIME_ROOT
}
/api.pb.go
||
ret
=
$?
if
[[
$ret
-eq
0
]]
;
then
echo
"Generated container runtime api is up to date."
...
...
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