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
4871f4a7
Commit
4871f4a7
authored
May 23, 2017
by
Kubernetes Submit Queue
Committed by
GitHub
May 23, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #45637 from xilabao/hide-api-version
Automatic merge from submit-queue remove --api-version
parents
8bee44b6
e0b4f3f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
util.sh
cluster/libvirt-coreos/util.sh
+1
-1
util.sh
cluster/vagrant/util.sh
+1
-1
explain.go
pkg/kubectl/cmd/explain.go
+1
-1
No files found.
cluster/libvirt-coreos/util.sh
View file @
4871f4a7
...
...
@@ -215,7 +215,7 @@ function wait-cluster-readiness {
local timeout
=
120
while
[[
$timeout
-ne
0
]]
;
do
nb_ready_nodes
=
$(
kubectl get nodes
-o
go-template
=
"{{range.items}}{{range.status.conditions}}{{.type}}{{end}}:{{end}}"
--api-version
=
v1
2>/dev/null |
tr
':'
'\n'
|
grep
-c
Ready
||
true
)
nb_ready_nodes
=
$(
kubectl get nodes
-o
go-template
=
"{{range.items}}{{range.status.conditions}}{{.type}}{{end}}:{{end}}"
2>/dev/null |
tr
':'
'\n'
|
grep
-c
Ready
||
true
)
echo
"Nb ready nodes:
$nb_ready_nodes
/
$NUM_NODES
"
if
[[
"
$nb_ready_nodes
"
-eq
"
$NUM_NODES
"
]]
;
then
return
0
...
...
cluster/vagrant/util.sh
View file @
4871f4a7
...
...
@@ -237,7 +237,7 @@ function verify-cluster {
echo
"Timeout while waiting for echo node to be registered with cloud provider"
exit
2
fi
local
nodes
=
$(
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
get nodes
-o
name
--api-version
=
v1
)
local
nodes
=
$(
"
${
KUBE_ROOT
}
/cluster/kubectl.sh"
get nodes
-o
name
)
validated
=
$(
echo
$nodes
|
grep
-c
"
${
NODE_NAMES
[i]
}
"
)
||
{
printf
"."
sleep
2
...
...
pkg/kubectl/cmd/explain.go
View file @
4871f4a7
...
...
@@ -57,7 +57,7 @@ func NewCmdExplain(f cmdutil.Factory, out, cmdErr io.Writer) *cobra.Command {
},
}
cmd
.
Flags
()
.
Bool
(
"recursive"
,
false
,
"Print the fields of fields (Currently only 1 level deep)"
)
cmd
.
Flags
()
.
String
(
"api-version"
,
""
,
"
The API version to use when talking to the server
"
)
cmd
.
Flags
()
.
String
(
"api-version"
,
""
,
"
Get different explanations for particular API version
"
)
cmdutil
.
AddInclude3rdPartyFlags
(
cmd
)
return
cmd
}
...
...
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