Skip to content

Commit

Permalink
Merge pull request kubernetes#45637 from xilabao/hide-api-version
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

remove --api-version
  • Loading branch information
Kubernetes Submit Queue authored May 23, 2017
2 parents 8bee44b + e0b4f3f commit 4871f4a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cluster/libvirt-coreos/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cluster/vagrant/util.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/kubectl/cmd/explain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 4871f4a

Please sign in to comment.