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
55ad41b4
Commit
55ad41b4
authored
Dec 19, 2014
by
Daniel Smith
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3073 from rlarocque2/kubectl_scripts
Replace kubecfg with kubectl in setup scripts
parents
3072453c
9ac9c695
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
util.sh
cluster/vagrant/util.sh
+1
-1
validate-cluster.sh
cluster/validate-cluster.sh
+1
-1
No files found.
cluster/vagrant/util.sh
View file @
55ad41b4
...
...
@@ -140,7 +140,7 @@ function verify-cluster {
local
count
=
"0"
until
[[
"
$count
"
==
"1"
]]
;
do
local
minions
minions
=
$(
"
${
KUBE_ROOT
}
/cluster/kubec
fg.sh"
-template
'{{range.items}}{{.id}}:{{end}}'
list minions
)
minions
=
$(
"
${
KUBE_ROOT
}
/cluster/kubec
tl.sh"
get minions
-o
template
-t
'{{range.items}}{{.id}}:{{end}}'
)
count
=
$(
echo
$minions
|
grep
-c
"
${
MINION_IPS
[i]
}
"
)
||
{
printf
"."
sleep
2
...
...
cluster/validate-cluster.sh
View file @
55ad41b4
...
...
@@ -35,7 +35,7 @@ detect-minions > /dev/null
MINIONS_FILE
=
/tmp/minions
attempt
=
0
while
true
;
do
"
${
KUBE_ROOT
}
/cluster/kubec
fg.sh"
-template
$'{{range.items}}{{.id}}
\n
{{end}}'
list minions
>
"
${
MINIONS_FILE
}
"
"
${
KUBE_ROOT
}
/cluster/kubec
tl.sh"
get minions
-o
template
-t
$'{{range.items}}{{.id}}
\n
{{end}}'
>
"
${
MINIONS_FILE
}
"
found
=
$(
grep
-c
.
"
${
MINIONS_FILE
}
"
)
if
[[
${
found
}
==
"
${
NUM_MINIONS
}
"
]]
;
then
break
...
...
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