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
1e2b6442
Commit
1e2b6442
authored
Jan 13, 2018
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cluster: move logging library to hack/
it's used once in cluster and used a bunch in hack/ and build/
parent
32dc5047
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
5 additions
and
37 deletions
+5
-37
BUILD
cluster/BUILD
+0
-4
common.sh
cluster/common.sh
+1
-2
BUILD
cluster/lib/BUILD
+0
-25
generate-bindata.sh
hack/generate-bindata.sh
+1
-1
BUILD
hack/lib/BUILD
+1
-3
init.sh
hack/lib/init.sh
+1
-1
logging.sh
hack/lib/logging.sh
+0
-0
gubernator.sh
test/e2e_node/gubernator.sh
+1
-1
No files found.
cluster/BUILD
View file @
1e2b6442
...
...
@@ -20,7 +20,6 @@ filegroup(
"//cluster/images/etcd/rollback:all-srcs",
"//cluster/images/hyperkube:all-srcs",
"//cluster/images/kubemark:all-srcs",
"//cluster/lib:all-srcs",
"//cluster/saltbase:all-srcs",
],
tags = ["automanaged"],
...
...
@@ -55,7 +54,6 @@ sh_test(
name = "common_test",
srcs = ["common.sh"],
deps = [
"//cluster/lib",
"//hack/lib",
],
)
...
...
@@ -64,7 +62,6 @@ sh_test(
name = "clientbin_test",
srcs = ["clientbin.sh"],
deps = [
"//cluster/lib",
"//hack/lib",
],
)
...
...
@@ -73,7 +70,6 @@ sh_test(
name = "kube-util_test",
srcs = ["kube-util.sh"],
deps = [
"//cluster/lib",
"//hack/lib",
],
)
cluster/common.sh
View file @
1e2b6442
...
...
@@ -25,7 +25,6 @@ KUBE_ROOT=$(cd $(dirname "${BASH_SOURCE}")/.. && pwd)
DEFAULT_KUBECONFIG
=
"
${
HOME
:-
.
}
/.kube/config"
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
source
"
${
KUBE_ROOT
}
/cluster/lib/logging.sh"
# KUBE_RELEASE_VERSION_REGEX matches things like "v1.2.3" or "v1.2.3-alpha.4"
#
# NOTE This must match the version_regex in build/common.sh
...
...
@@ -499,7 +498,7 @@ function stage-images() {
done
kube::util::wait-for-jobs
||
{
kube::log::error
"unable to push images. See
${
temp_dir
}
/*.log for more info."
echo
"!!! unable to push images. See
${
temp_dir
}
/*.log for more info."
1>&2
return
1
}
...
...
cluster/lib/BUILD
deleted
100644 → 0
View file @
32dc5047
sh_library(
name = "lib",
srcs = [
"logging.sh",
],
visibility = [
"//build/visible_to:COMMON_testing",
"//build/visible_to:cluster",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = [
"//build/visible_to:cluster",
],
)
hack/generate-bindata.sh
View file @
1e2b6442
...
...
@@ -22,7 +22,7 @@ if [[ -z "${KUBE_ROOT:-}" ]]; then
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
fi
source
"
${
KUBE_ROOT
}
/
cluster
/lib/logging.sh"
source
"
${
KUBE_ROOT
}
/
hack
/lib/logging.sh"
if
[[
!
-d
"
${
KUBE_ROOT
}
/examples"
]]
;
then
echo
"
${
KUBE_ROOT
}
/examples not detected. This script should be run from a location where the source dirs are available."
...
...
hack/lib/BUILD
View file @
1e2b6442
...
...
@@ -6,14 +6,12 @@ sh_library(
"etcd.sh",
"golang.sh",
"init.sh",
"logging.sh",
"swagger.sh",
"test.sh",
"util.sh",
"version.sh",
],
deps = [
"//cluster/lib",
],
)
filegroup(
...
...
hack/lib/init.sh
View file @
1e2b6442
...
...
@@ -37,7 +37,7 @@ export no_proxy=127.0.0.1,localhost
THIS_PLATFORM_BIN
=
"
${
KUBE_ROOT
}
/_output/bin"
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
source
"
${
KUBE_ROOT
}
/
cluster
/lib/logging.sh"
source
"
${
KUBE_ROOT
}
/
hack
/lib/logging.sh"
kube::log::install_errexit
...
...
cluster
/lib/logging.sh
→
hack
/lib/logging.sh
View file @
1e2b6442
File moved
test/e2e_node/gubernator.sh
View file @
1e2b6442
...
...
@@ -22,7 +22,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
source
cluster
/lib/logging.sh
source
hack
/lib/logging.sh
if
[[
$#
-eq
0
||
!
$1
=
~ ^[Yy]
$
]]
;
then
...
...
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