Esempio n. 1
0
func runVolumeManager(manager VolumeManager) chan struct{} {
	stopCh := make(chan struct{})
	//readyCh := make(chan bool, 1)
	//readyCh <- true
	sourcesReady := config.NewSourcesReady(func(_ sets.String) bool { return true })
	go manager.Run(sourcesReady, stopCh)
	return stopCh
}
Esempio n. 2
0
func runReconciler(reconciler Reconciler) {
	sourcesReady := config.NewSourcesReady(func(_ sets.String) bool { return false })
	go reconciler.Run(sourcesReady, wait.NeverStop)
}