Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
C
Coredns
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Railgun
Coredns
Commits
7c8d1b02
Commit
7c8d1b02
authored
May 25, 2017
by
Manuel Alejandro de Brito Fontes
Committed by
Miek Gieben
May 25, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Check that all the controllers are synced agains api server (#671)
parent
37050dc2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
middleware/kubernetes/controller.go
middleware/kubernetes/controller.go
+9
-1
No files found.
middleware/kubernetes/controller.go
View file @
7c8d1b02
...
...
@@ -295,7 +295,15 @@ func endpointsWatchFunc(c *kubernetes.Clientset, ns string, s *labels.Selector)
}
func
(
dns
*
dnsControl
)
controllersInSync
()
bool
{
return
dns
.
svcController
.
HasSynced
()
hs
:=
dns
.
svcController
.
HasSynced
()
&&
dns
.
nsController
.
HasSynced
()
&&
dns
.
epController
.
HasSynced
()
if
dns
.
podController
!=
nil
{
hs
=
hs
&&
dns
.
podController
.
HasSynced
()
}
return
hs
}
// Stop stops the controller.
...
...
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