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
79b6f13b
Commit
79b6f13b
authored
Jan 05, 2016
by
gmarek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Increase timeout for waiting for kubectl proxy in test-cmd
parent
823cddf5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
test-cmd.sh
hack/test-cmd.sh
+4
-2
No files found.
hack/test-cmd.sh
View file @
79b6f13b
...
@@ -54,10 +54,12 @@ function start-proxy()
...
@@ -54,10 +54,12 @@ function start-proxy()
done
done
PROXY_PID
=
$!
PROXY_PID
=
$!
# We try checking kubectl proxy 30 times with 1s delays to avoid occasional
# failures.
if
[
$#
-eq
0
]
;
then
if
[
$#
-eq
0
]
;
then
kube::util::wait_for_url
"http://127.0.0.1:
${
PROXY_PORT
}
/healthz"
"kubectl proxy"
kube::util::wait_for_url
"http://127.0.0.1:
${
PROXY_PORT
}
/healthz"
"kubectl proxy"
1 30
else
else
kube::util::wait_for_url
"http://127.0.0.1:
${
PROXY_PORT
}
/
$1
/healthz"
"kubectl proxy --api-prefix=
$1
"
kube::util::wait_for_url
"http://127.0.0.1:
${
PROXY_PORT
}
/
$1
/healthz"
"kubectl proxy --api-prefix=
$1
"
1 30
fi
fi
}
}
...
...
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