Fixes golint errors in cmd/.

This commit is contained in:
Yuki Yugui Sonoda
2014-07-08 15:30:18 +09:00
parent 28f7d60965
commit c25f44c137
5 changed files with 22 additions and 21 deletions

View File

@@ -76,10 +76,10 @@ func startComponents(manifestURL string) (apiServerURL string) {
m := master.New(servers, machineList, fakePodInfoGetter{}, nil, "")
apiserver := httptest.NewServer(m.ConstructHandler("/api/v1beta1"))
kClient := client.New(apiserver.URL, nil)
kClient.PollPeriod = time.Second * 1
kClient.Sync = true
controllerManager := controller.MakeReplicationManager(etcd.NewClient(servers), kClient)
cl := client.New(apiserver.URL, nil)
cl.PollPeriod = time.Second * 1
cl.Sync = true
controllerManager := controller.MakeReplicationManager(etcd.NewClient(servers), cl)
controllerManager.Run(1 * time.Second)
@@ -268,7 +268,7 @@ func main() {
glog.Infof("OK - found created pods: %#v", createdPods.List())
}
// Serve a file for kubelet to read.
// ServeCachedManifestFile serves a file for kubelet to read.
func ServeCachedManifestFile() (servingAddress string) {
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
if r.URL.Path == "/manifest" {