Make kubelet builder customizable

This is the preparation to remove a lot of duplicated code for kubelet
initialization in https://github.com/kubernetes/kubernetes/pull/13036.
This commit is contained in:
Dr. Stefan Schimanski
2015-09-23 11:19:39 +02:00
parent e330b1197e
commit cd760cc4ea
3 changed files with 7 additions and 5 deletions

View File

@@ -238,7 +238,7 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
10*time.Second, /* SyncFrequency */
40 /* MaxPods */)
kubeletapp.RunKubelet(kcfg, nil)
kubeletapp.RunKubelet(kcfg)
// Kubelet (machine)
// Create a second kubelet so that the guestbook example's two redis slaves both
// have a place they can schedule.
@@ -270,7 +270,7 @@ func startComponents(firstManifestURL, secondManifestURL string) (string, string
40 /* MaxPods */)
kubeletapp.RunKubelet(kcfg, nil)
kubeletapp.RunKubelet(kcfg)
return apiServer.URL, configFilePath
}