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
4c16fb78
Unverified
Commit
4c16fb78
authored
Mar 21, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Mar 21, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74242 from xichengliudui/fixshellcheck19021903
fix shellcheck in hack/make-rules/...
parents
c48ed1c5
ec5fddfe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
.shellcheck_failures
hack/.shellcheck_failures
+0
-3
build.sh
hack/make-rules/build.sh
+1
-1
cross.sh
hack/make-rules/cross.sh
+1
-1
test-cmd.sh
hack/make-rules/test-cmd.sh
+15
-4
No files found.
hack/.shellcheck_failures
View file @
4c16fb78
...
...
@@ -43,12 +43,9 @@
./hack/lib/version.sh
./hack/list-feature-tests.sh
./hack/local-up-cluster.sh
./hack/make-rules/build.sh
./hack/make-rules/clean.sh
./hack/make-rules/cross.sh
./hack/make-rules/helpers/cache_go_dirs.sh
./hack/make-rules/make-help.sh
./hack/make-rules/test-cmd.sh
./hack/make-rules/test-e2e-node.sh
./hack/make-rules/test-integration.sh
./hack/make-rules/test.sh
...
...
hack/make-rules/build.sh
View file @
4c16fb78
...
...
@@ -20,7 +20,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../..
KUBE_VERBOSE
=
"
${
KUBE_VERBOSE
:-
1
}
"
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
...
...
hack/make-rules/cross.sh
View file @
4c16fb78
...
...
@@ -21,7 +21,7 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
# NOTE: Using "${array[*]}" here is correct. [@] becomes distinct words (in
...
...
hack/make-rules/test-cmd.sh
View file @
4c16fb78
...
...
@@ -21,11 +21,15 @@ set -o errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../..
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/test.sh"
source
"
${
KUBE_ROOT
}
/test/cmd/legacy-script.sh"
# Runs kube-apiserver
#
# Exports:
# APISERVER_PID
function
run_kube_apiserver
()
{
kube::log::status
"Building kube-apiserver"
make
-C
"
${
KUBE_ROOT
}
"
WHAT
=
"cmd/kube-apiserver"
...
...
@@ -58,11 +62,15 @@ function run_kube_apiserver() {
--cert-dir
=
"
${
TMPDIR
:-
/tmp/
}
"
\
--service-cluster-ip-range
=
"10.0.0.0/24"
\
--token-auth-file
=
hack/testdata/auth-tokens.csv 1>&2 &
APISERVER_PID
=
$!
export
APISERVER_PID
=
$!
kube::util::wait_for_url
"http://127.0.0.1:
${
API_PORT
}
/healthz"
"apiserver"
}
# Runs run_kube_controller_manager
#
# Exports:
# CTLRMGR_PID
function
run_kube_controller_manager
()
{
kube::log::status
"Building kube-controller-manager"
make
-C
"
${
KUBE_ROOT
}
"
WHAT
=
"cmd/kube-controller-manager"
...
...
@@ -73,13 +81,16 @@ function run_kube_controller_manager() {
--port
=
"
${
CTLRMGR_PORT
}
"
\
--kube-api-content-type
=
"
${
KUBE_TEST_API_TYPE
-
}
"
\
--master
=
"127.0.0.1:
${
API_PORT
}
"
1>&2 &
CTLRMGR_PID
=
$!
export
CTLRMGR_PID
=
$!
kube::util::wait_for_url
"http://127.0.0.1:
${
CTLRMGR_PORT
}
/healthz"
"controller-manager"
}
# Creates a node object with name 127.0.0.1. This is required because we do not
# run kubelet.
#
# Exports:
# SUPPORTED_RESOURCES(Array of all resources supported by the apiserver).
function
create_node
()
{
kubectl create
-f
-
-s
"http://127.0.0.1:
${
API_PORT
}
"
<<
__EOF__
{
...
...
@@ -117,7 +128,7 @@ setup
run_kube_apiserver
run_kube_controller_manager
create_node
SUPPORTED_RESOURCES
=(
"*"
)
export
SUPPORTED_RESOURCES
=(
"*"
)
# WARNING: Do not wrap this call in a subshell to capture output, e.g. output=$(runTests)
# Doing so will suppress errexit behavior inside runTests
runTests
...
...
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