Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
K
Kubespray
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Mirror
Kubespray
Commits
7fe73571
Unverified
Commit
7fe73571
authored
6 years ago
by
JuanJo Ciarlante
Browse files
Options
Downloads
Patches
Plain Diff
improve contrib/dind/README.md
parent
635261eb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
contrib/dind/README.md
+24
-0
24 additions, 0 deletions
contrib/dind/README.md
contrib/dind/run-test-distros.sh
+6
-3
6 additions, 3 deletions
contrib/dind/run-test-distros.sh
with
30 additions
and
3 deletions
contrib/dind/README.md
+
24
−
0
View file @
7fe73571
...
...
@@ -150,3 +150,27 @@ kube-system weave-net-xr46t 2/2 Running 0
$ docker exec kube-node1 curl -s http://localhost:31081/api/v1/connectivity_check
{"Message":"All 10 pods successfully reported back to the server","Absent":null,"Outdated":null}
~~~
## Using ./run-test-distros.sh
You can use
`./run-test-distros.sh`
to run a set of tests via DIND,
and excerpt from this script, to get an idea:
~~~
# The SPEC file(s) must have two arrays as e.g.
# DISTROS=(debian centos)
# EXTRAS=(
# 'kube_network_plugin=calico'
# 'kube_network_plugin=flannel'
# 'kube_network_plugin=weave'
# )
# that will be tested in a "combinatory" way (e.g. from above there'll be
# be 6 test runs), creating a sequenced <spec_filename>-nn.out with each output.
#
# Each $EXTRAS element will be whitespace split, and passed as --extra-vars
# to main kubespray ansible-playbook run.
~~~
See e.g.
`test-some_distros-most_CNIs.env`
and
`test-some_distros-kube_router_combo.env`
in particular for a richer
set of CNI specific
`--extra-vars`
combo.
This diff is collapsed.
Click to expand it.
contrib/dind/run-test-distros.sh
+
6
−
3
View file @
7fe73571
...
...
@@ -52,15 +52,18 @@ NETCHECKER_HOST=localhost
:
${
OUTPUT_DIR
:
=./out
}
mkdir
-p
${
OUTPUT_DIR
}
#
We expect t
he SPEC file(s) t
o
have
below
two arrays as e.g.
#
T
he SPEC file(s)
mus
t have two arrays as e.g.
# DISTROS=(debian centos)
# EXTRAS=(
# 'kube_network_plugin=calico'
# 'kube_network_plugin=flannel'
# 'kube_network_plugin=weave'
# )
# that we'll test in a "combinatory" way (e.g. above will be 6 tests),
# creating a sequenced <spec_filename>-nn.out with each output
# that will be tested in a "combinatory" way (e.g. from above there'll be
# be 6 test runs), creating a sequenced <spec_filename>-nn.out with each output.
#
# Each $EXTRAS element will be whitespace split, and passed as --extra-vars
# to main kubespray ansible-playbook run.
SPECS
=
${
*
:?Missing
SPEC files, e.g. test-most_distros-some_CNIs.env
}
for
spec
in
${
SPECS
}
;
do
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment