plugin/kubernetes: implement HasSynced() (#1155)
* plugin/kubernetes: wait until api is ready Wait for HasSynced before allowing startup to avoid startup race. Also do a small refactor in findServices() to pull a check out of the loop - only needs to be done once. * sigh
This commit is contained in:
parent
c1f67493de
commit
d64b684831
13 changed files with 36 additions and 41 deletions
|
@ -14,6 +14,7 @@ import (
|
|||
|
||||
type APIConnReverseTest struct{}
|
||||
|
||||
func (APIConnReverseTest) HasSynced() bool { return true }
|
||||
func (APIConnReverseTest) Run() { return }
|
||||
func (APIConnReverseTest) Stop() error { return nil }
|
||||
func (APIConnReverseTest) PodIndex(string) []*api.Pod { return nil }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue