mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	Extract the service controller from the apiserver, put it in the controller manager for now.
This commit is contained in:
		@@ -40,6 +40,7 @@ import (
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/kubelet/dockertools"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/labels"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/master"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/service"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/util"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/pkg/util/wait"
 | 
			
		||||
	"github.com/GoogleCloudPlatform/kubernetes/plugin/pkg/scheduler"
 | 
			
		||||
@@ -133,6 +134,9 @@ func startComponents(manifestURL string) (apiServerURL string) {
 | 
			
		||||
	// Scheduler
 | 
			
		||||
	scheduler.New((&factory.ConfigFactory{cl}).Create()).Run()
 | 
			
		||||
 | 
			
		||||
	endpoints := service.NewEndpointController(cl)
 | 
			
		||||
	go util.Forever(func() { endpoints.SyncServiceEndpoints() }, time.Second*10)
 | 
			
		||||
 | 
			
		||||
	controllerManager := controller.NewReplicationManager(cl)
 | 
			
		||||
 | 
			
		||||
	// Prove that controllerManager's watch works by making it not sync until after this
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user