Merge pull request #13669 from aveshagarwal/proxy-birthcry-fix

Auto commit by PR queue bot
This commit is contained in:
k8s-merge-robot
2015-09-08 17:33:05 -07:00

View File

@@ -159,9 +159,6 @@ func (s *ProxyServer) Run(_ []string) error {
Namespace: "",
}
// Birth Cry
s.birthCry()
serviceConfig := config.NewServiceConfig()
endpointsConfig := config.NewEndpointsConfig()
@@ -208,6 +205,9 @@ func (s *ProxyServer) Run(_ []string) error {
iptables.CleanupLeftovers(ipt)
}
// Birth Cry after the birth is successful
s.birthCry()
// Wire proxier to handle changes to services
serviceConfig.RegisterHandler(proxier)
// And wire endpointsHandler to handle changes to endpoints to services