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
abe7fc0e
Commit
abe7fc0e
authored
Dec 29, 2015
by
He Simei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update validate-cluster.sh
parent
9a1d16f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
validate-cluster.sh
cluster/validate-cluster.sh
+3
-3
No files found.
cluster/validate-cluster.sh
View file @
abe7fc0e
...
...
@@ -40,9 +40,9 @@ while true; do
# Suppress errors from kubectl output because during cluster bootstrapping
# for clusters where the master node is registered, the apiserver will become
# available and then get restarted as the kubelet configures the docker bridge.
node
s
=
$(
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
get nodes
)
||
true
found
=
$(($(
echo
"
${
node
s
}
"
|
wc
-l
)
-
1
))
||
true
ready
=
$(
echo
"
${
node
s
}
"
|
grep
-c
"Ready"
)
||
true
node
=
$(
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
get nodes
)
||
true
found
=
$(($(
echo
"
${
node
}
"
|
wc
-l
)
-
1
))
||
true
ready
=
$(
echo
"
${
node
}
"
|
grep
-c
"Ready"
)
||
true
if
((
"
${
found
}
"
==
"
${
EXPECTED_NUM_NODES
}
"
))
&&
((
"
${
ready
}
"
==
"
${
EXPECTED_NUM_NODES
}
"
))
;
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