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
31903e64
Unverified
Commit
31903e64
authored
Apr 19, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76152 from SataQiu/fix-shell-cluster-20190404
Fix some shellcheck failures of cluster/*.sh
parents
22c67bb1
bc279da8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
8 additions
and
8 deletions
+8
-8
clientbin.sh
cluster/clientbin.sh
+1
-1
common.sh
cluster/common.sh
+1
-1
log-dump.sh
cluster/log-dump/log-dump.sh
+1
-1
util.sh
cluster/pre-existing/util.sh
+1
-1
test-e2e.sh
cluster/test-e2e.sh
+1
-1
test-network.sh
cluster/test-network.sh
+1
-1
test-smoke.sh
cluster/test-smoke.sh
+1
-1
validate-cluster.sh
cluster/validate-cluster.sh
+1
-1
No files found.
cluster/clientbin.sh
View file @
31903e64
...
@@ -18,7 +18,7 @@ set -o errexit
...
@@ -18,7 +18,7 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
KUBE_ROOT
=
${
KUBE_ROOT
:-$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
}
KUBE_ROOT
=
${
KUBE_ROOT
:-$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
}
# Detect the OS name/arch so that we can find our binary
# Detect the OS name/arch so that we can find our binary
case
"
$(
uname
-s
)
"
in
case
"
$(
uname
-s
)
"
in
...
...
cluster/common.sh
View file @
31903e64
...
@@ -20,7 +20,7 @@ set -o errexit
...
@@ -20,7 +20,7 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
KUBE_ROOT
=
$(
cd
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
&&
pwd
)
KUBE_ROOT
=
$(
cd
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
&&
pwd
)
DEFAULT_KUBECONFIG
=
"
${
HOME
:-
.
}
/.kube/config"
DEFAULT_KUBECONFIG
=
"
${
HOME
:-
.
}
/.kube/config"
...
...
cluster/log-dump/log-dump.sh
View file @
31903e64
...
@@ -63,7 +63,7 @@ readonly max_dump_processes=25
...
@@ -63,7 +63,7 @@ readonly max_dump_processes=25
# TODO: Get rid of all the sourcing of bash dependencies eventually.
# TODO: Get rid of all the sourcing of bash dependencies eventually.
function
setup
()
{
function
setup
()
{
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../..
if
[[
-z
"
${
use_custom_instance_list
}
"
]]
;
then
if
[[
-z
"
${
use_custom_instance_list
}
"
]]
;
then
:
${
KUBE_CONFIG_FILE
:
=
"config-test.sh"
}
:
${
KUBE_CONFIG_FILE
:
=
"config-test.sh"
}
echo
"Sourcing kube-util.sh"
echo
"Sourcing kube-util.sh"
...
...
cluster/pre-existing/util.sh
View file @
31903e64
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
# pre-existing Kubernetes master. See test/kubemark/pre-existing/README.md
# pre-existing Kubernetes master. See test/kubemark/pre-existing/README.md
# for me details on using a pre-existing provider.
# for me details on using a pre-existing provider.
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../..
source
"
${
KUBE_ROOT
}
/cluster/common.sh"
source
"
${
KUBE_ROOT
}
/cluster/common.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
source
"
${
KUBE_ROOT
}
/hack/lib/util.sh"
...
...
cluster/test-e2e.sh
View file @
31903e64
...
@@ -21,7 +21,7 @@ set -o errexit
...
@@ -21,7 +21,7 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
source
"
${
KUBE_ROOT
}
/cluster/kube-util.sh"
echo
"Testing cluster with provider:
${
KUBERNETES_PROVIDER
}
"
1>&2
echo
"Testing cluster with provider:
${
KUBERNETES_PROVIDER
}
"
1>&2
...
...
cluster/test-network.sh
View file @
31903e64
...
@@ -24,7 +24,7 @@ set -o errexit
...
@@ -24,7 +24,7 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
KUBE_CONFIG_FILE
=
"config-default.sh"
KUBE_CONFIG_FILE
=
"config-default.sh"
${
KUBE_ROOT
}
/hack/ginkgo-e2e.sh
--ginkgo
.focus
=
Networking
${
KUBE_ROOT
}
/hack/ginkgo-e2e.sh
--ginkgo
.focus
=
Networking
cluster/test-smoke.sh
View file @
31903e64
...
@@ -23,7 +23,7 @@ set -o errexit
...
@@ -23,7 +23,7 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
TEST_ARGS
=
"
$@
"
TEST_ARGS
=
"
$@
"
...
...
cluster/validate-cluster.sh
View file @
31903e64
...
@@ -24,7 +24,7 @@ set -o errexit
...
@@ -24,7 +24,7 @@ set -o errexit
set
-o
nounset
set
-o
nounset
set
-o
pipefail
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/..
if
[
-f
"
${
KUBE_ROOT
}
/cluster/env.sh"
]
;
then
if
[
-f
"
${
KUBE_ROOT
}
/cluster/env.sh"
]
;
then
source
"
${
KUBE_ROOT
}
/cluster/env.sh"
source
"
${
KUBE_ROOT
}
/cluster/env.sh"
...
...
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