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
daf6be1a
Commit
daf6be1a
authored
Apr 25, 2016
by
Piotr Szczesniak
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #24706 from jayunit100/redis-wait
Slow down redis polling to ensure no flakiness in kubectl
parents
c0020aff
fcf25459
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
kubectl.go
test/e2e/kubectl.go
+5
-1
No files found.
test/e2e/kubectl.go
View file @
daf6be1a
...
@@ -727,8 +727,12 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
...
@@ -727,8 +727,12 @@ var _ = framework.KubeDescribe("Kubectl client", func() {
framework
.
Logf
(
"namespace %v"
,
ns
)
framework
.
Logf
(
"namespace %v"
,
ns
)
framework
.
RunKubectlOrDie
(
"create"
,
"-f"
,
controllerJson
,
nsFlag
)
framework
.
RunKubectlOrDie
(
"create"
,
"-f"
,
controllerJson
,
nsFlag
)
// It may take a while for the pods to get registered in some cases, wait to be sure.
By
(
"Waiting for Redis master to start."
)
waitFor
(
1
)
forEachPod
(
func
(
pod
api
.
Pod
)
{
forEachPod
(
func
(
pod
api
.
Pod
)
{
framework
.
Logf
(
"wait on %v "
,
ns
)
framework
.
Logf
(
"wait on
redis-master startup in
%v "
,
ns
)
framework
.
LookForStringInLog
(
ns
,
pod
.
Name
,
"redis-master"
,
"The server is now ready to accept connections"
,
framework
.
PodStartTimeout
)
framework
.
LookForStringInLog
(
ns
,
pod
.
Name
,
"redis-master"
,
"The server is now ready to accept connections"
,
framework
.
PodStartTimeout
)
})
})
validateService
:=
func
(
name
string
,
servicePort
int
,
timeout
time
.
Duration
)
{
validateService
:=
func
(
name
string
,
servicePort
int
,
timeout
time
.
Duration
)
{
...
...
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