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
ee50d478
Unverified
Commit
ee50d478
authored
Feb 19, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Feb 19, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #74193 from xichengliudui/fixshellcheck19021802
fix shellcheck in test/integration/... and test/kubemark/...
parents
e67562dc
641f883b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
15 deletions
+11
-15
.shellcheck_failures
hack/.shellcheck_failures
+0
-4
test-performance.sh
test/integration/ipamperf/test-performance.sh
+4
-4
test-performance.sh
test/integration/scheduler_perf/test-performance.sh
+3
-3
configure-kubectl.sh
test/kubemark/configure-kubectl.sh
+2
-2
util.sh
test/kubemark/pre-existing/util.sh
+2
-2
No files found.
hack/.shellcheck_failures
View file @
ee50d478
...
...
@@ -199,16 +199,12 @@
./test/images/volume/rbd/create_block.sh
./test/images/volume/rbd/mon.sh
./test/images/volume/rbd/osd.sh
./test/integration/ipamperf/test-performance.sh
./test/integration/scheduler_perf/test-performance.sh
./test/kubemark/common/util.sh
./test/kubemark/configure-kubectl.sh
./test/kubemark/gce/util.sh
./test/kubemark/iks/shutdown.sh
./test/kubemark/iks/startup.sh
./test/kubemark/iks/util.sh
./test/kubemark/master-log-dump.sh
./test/kubemark/pre-existing/util.sh
./test/kubemark/resources/start-kubemark-master.sh
./test/kubemark/run-e2e-tests.sh
./test/kubemark/start-kubemark.sh
...
...
test/integration/ipamperf/test-performance.sh
View file @
ee50d478
...
...
@@ -67,13 +67,13 @@ while getopts ":hdr:o:p:ca:k:n:m:l:" opt; do
esac
done
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../../../
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../../../
source
"
${
KUBE_ROOT
}
/hack/lib/init.sh"
kube::golang::setup_env
DIR_BASENAME
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
pushd
${
DIR_BASENAME
}
DIR_BASENAME
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
pushd
"
${
DIR_BASENAME
}
"
cleanup
()
{
popd
2> /dev/null
...
...
@@ -87,5 +87,5 @@ kube::etcd::start
# Running IPAM tests. It might take a long time.
kube::log::status
"performance test (IPAM) start"
go
test
${
PROFILE_OPTS
}
-test
.run
=
${
RUN_PATTERN
}
-test
.timeout
=
60m
-test
.short
=
false
-v
-args
${
TEST_ARGS
}
go
test
"
${
PROFILE_OPTS
}
"
-test
.run
=
"
${
RUN_PATTERN
}
"
-test
.timeout
=
60m
-test
.short
=
false
-v
-args
"
${
TEST_ARGS
}
"
kube::log::status
"... IPAM tests finished."
test/integration/scheduler_perf/test-performance.sh
View file @
ee50d478
...
...
@@ -18,13 +18,13 @@ 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"
kube::golang::setup_env
DIR_BASENAME
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
pushd
${
DIR_BASENAME
}
DIR_BASENAME
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
pushd
"
${
DIR_BASENAME
}
"
cleanup
()
{
popd
2> /dev/null
...
...
test/kubemark/configure-kubectl.sh
View file @
ee50d478
...
...
@@ -16,5 +16,5 @@
# This script assumes that kubectl binary is present in PATH.
kubectl config set-cluster hollow-cluster
--server
=
http://localhost:8080
--insecure-skip-tls-verify
=
true
kubectl config set-credentials
$(
whoami
)
kubectl config set-context hollow-context
--cluster
=
hollow-cluster
--user
=
$(
whoami
)
kubectl config set-credentials
"
$(
whoami
)
"
kubectl config set-context hollow-context
--cluster
=
hollow-cluster
--user
=
"
$(
whoami
)
"
test/kubemark/pre-existing/util.sh
View file @
ee50d478
...
...
@@ -14,7 +14,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../../..
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
[0]
}
"
)
/../../..
source
"
${
KUBE_ROOT
}
/test/kubemark/common/util.sh"
...
...
@@ -23,5 +23,5 @@ source "${KUBE_ROOT}/test/kubemark/common/util.sh"
function
execute-cmd-on-pre-existing-master-with-retries
()
{
IP_WITHOUT_PORT
=
$(
echo
"
${
MASTER_IP
}
"
|
cut
-f
1
-d
':'
)
||
"
${
MASTER_IP
}
"
RETRIES
=
"
${
2
:-
1
}
"
run-cmd-with-retries ssh kubernetes@
"
${
IP_WITHOUT_PORT
}
"
$1
RETRIES
=
"
${
2
:-
1
}
"
run-cmd-with-retries ssh kubernetes@
"
${
IP_WITHOUT_PORT
}
"
"
${
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