code: func (lbc *loadBalancerController) sync(dryRun bool) error {
  	if !lbc.epController.HasSynced() || !lbc.svcController.HasSynced() {
  		time.Sleep(100 * time.Millisecond)
  		return errDeferredSync
  	}
  	httpSvc, httpsTermSvc, tcpSvc := lbc.getServices()
  	if len(httpSvc) == 0 && len(httpsTermSvc) == 0 && len(tcpSvc) == 0 {
  		return nil
  	}
  	if err := lbc.cfg.write(
  		map[string][]service{
  			"http":      httpSvc,
  			"httpsTerm": httpsTermSvc,
  			"tcp":       tcpSvc,
  		}, dryRun); err != nil {
  		return err
  	}
  	if dryRun {
  		return nil
  	}
  	return lbc.cfg.reload()
  }
docs: // sync all services with the loadbalancer.