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
bd11f004
Commit
bd11f004
authored
Apr 22, 2015
by
Fabio Yeon
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7193 from roberthbailey/fix-ssh-to-node
Swallow the output from the test ssh connections so that it doesn't interfere with string comparison.
parents
924015dc
4346c6ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
util.sh
cluster/gce/util.sh
+1
-1
util.sh
cluster/gke/util.sh
+1
-1
No files found.
cluster/gce/util.sh
View file @
bd11f004
...
@@ -967,7 +967,7 @@ function ssh-to-node {
...
@@ -967,7 +967,7 @@ function ssh-to-node {
local
cmd
=
"
$2
"
local
cmd
=
"
$2
"
# Loop until we can successfully ssh into the box
# Loop until we can successfully ssh into the box
for
try
in
$(
seq
1 5
)
;
do
for
try
in
$(
seq
1 5
)
;
do
if
gcloud compute ssh
--ssh-flag
=
"-o LogLevel=quiet"
--project
"
${
PROJECT
}
"
--zone
=
"
${
ZONE
}
"
"
${
node
}
"
--command
"echo test"
;
then
if
gcloud compute ssh
--ssh-flag
=
"-o LogLevel=quiet"
--project
"
${
PROJECT
}
"
--zone
=
"
${
ZONE
}
"
"
${
node
}
"
--command
"echo test
> /dev/null
"
;
then
break
break
fi
fi
sleep
5
sleep
5
...
...
cluster/gke/util.sh
View file @
bd11f004
...
@@ -248,7 +248,7 @@ function ssh-to-node() {
...
@@ -248,7 +248,7 @@ function ssh-to-node() {
local
cmd
=
"
$2
"
local
cmd
=
"
$2
"
# Loop until we can successfully ssh into the box
# Loop until we can successfully ssh into the box
for
try
in
$(
seq
1 5
)
;
do
for
try
in
$(
seq
1 5
)
;
do
if
gcloud compute ssh
--ssh-flag
=
"-o LogLevel=quiet"
--project
"
${
PROJECT
}
"
--zone
=
"
${
ZONE
}
"
"
${
node
}
"
--command
"echo test"
;
then
if
gcloud compute ssh
--ssh-flag
=
"-o LogLevel=quiet"
--project
"
${
PROJECT
}
"
--zone
=
"
${
ZONE
}
"
"
${
node
}
"
--command
"echo test
> /dev/null
"
;
then
break
break
fi
fi
sleep
5
sleep
5
...
...
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