Sync all pods with store before starting RC Manager.

This commit is contained in:
Prashanth Balasubramanian
2016-01-21 16:21:30 -08:00
parent 7742c6c78e
commit 1b93ee7b35
3 changed files with 68 additions and 4 deletions

View File

@@ -182,6 +182,8 @@ func (rm *ReplicationManager) SetEventRecorder(recorder record.EventRecorder) {
// Run begins watching and syncing.
func (rm *ReplicationManager) Run(workers int, stopCh <-chan struct{}) {
defer util.HandleCrash()
glog.Infof("Starting RC Manager")
controller.SyncAllPodsWithStore(rm.kubeClient, rm.podStore.Store)
go rm.rcController.Run(stopCh)
go rm.podController.Run(stopCh)
for i := 0; i < workers; i++ {