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
4a9b0465
Commit
4a9b0465
authored
Feb 02, 2016
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20432 from brendandburns/flake5
Don't re-check with gcloud for a firewall's existence to fix a potential flake.
parents
ec4b94aa
78c9a771
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
util.sh
cluster/gce/util.sh
+12
-8
No files found.
cluster/gce/util.sh
View file @
4a9b0465
...
@@ -1231,11 +1231,13 @@ function test-setup {
...
@@ -1231,11 +1231,13 @@ function test-setup {
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
2> /dev/null
||
true
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
2> /dev/null
||
true
# As there is no simple way to wait longer for this operation we need to manually
# As there is no simple way to wait longer for this operation we need to manually
# wait some additional time (20 minutes altogether).
# wait some additional time (20 minutes altogether).
until
gcloud compute firewall-rules describe
--project
"
${
PROJECT
}
"
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
2> /dev/null
||
[
$((
$start
+
1200
))
-lt
`
date
+%s
`
]
while
!
gcloud compute firewall-rules describe
--project
"
${
PROJECT
}
"
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
2> /dev/null
;
do
do
sleep
5
if
[[
$((
$start
+
1200
))
-lt
`
date
+%s
`
]]
;
then
echo
-e
"
${
color_red
}
Failed to create firewall
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt in
${
PROJECT
}
"
>
&2
exit
1
fi
sleep
5
done
done
# Check if the firewall rule exists and fail if it does not.
gcloud compute firewall-rules describe
--project
"
${
PROJECT
}
"
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-http-alt"
# Open up the NodePort range
# Open up the NodePort range
# TODO(justinsb): Move to main setup, if we decide whether we want to do this by default.
# TODO(justinsb): Move to main setup, if we decide whether we want to do this by default.
...
@@ -1248,11 +1250,13 @@ function test-setup {
...
@@ -1248,11 +1250,13 @@ function test-setup {
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-nodeports"
2> /dev/null
||
true
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-nodeports"
2> /dev/null
||
true
# As there is no simple way to wait longer for this operation we need to manually
# As there is no simple way to wait longer for this operation we need to manually
# wait some additional time (20 minutes altogether).
# wait some additional time (20 minutes altogether).
until
gcloud compute firewall-rules describe
--project
"
${
PROJECT
}
"
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-nodeports"
2> /dev/null
||
[
$((
$start
+
1200
))
-lt
`
date
+%s
`
]
while
!
gcloud compute firewall-rules describe
--project
"
${
PROJECT
}
"
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-nodeports"
2> /dev/null
;
do
do
sleep
5
if
[[
$((
$start
+
1200
))
-lt
`
date
+%s
`
]]
;
then
echo
-e
"
${
color_red
}
Failed to create firewall
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-nodeports in
${
PROJECT
}
"
>
&2
exit
1
fi
sleep
5
done
done
# Check if the firewall rule exists and fail if it does not.
gcloud compute firewall-rules describe
--project
"
${
PROJECT
}
"
"
${
NODE_TAG
}
-
${
INSTANCE_PREFIX
}
-nodeports"
}
}
# Execute after running tests to perform any required clean-up. This is called
# Execute after running tests to perform any required clean-up. This is called
...
...
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