Fix localkube due to a bad merge.

pull/6/head
Brendan Burns 2014-06-12 13:20:16 -07:00
parent df3aa48f88
commit 8f8c31e5cf
1 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,7 @@ import (
"flag"
"fmt"
"log"
"math/rand"
"net/http"
"os"
"time"
@ -90,8 +91,10 @@ func api_server() {
Client: http.DefaultClient,
Port: *kubelet_port,
}
random := rand.New(rand.NewSource(int64(time.Now().Nanosecond())))
storage := map[string]apiserver.RESTStorage{
"pods": registry.MakePodRegistryStorage(podRegistry, containerInfo, registry.MakeFirstFitScheduler(machineList, podRegistry)),
"pods": registry.MakePodRegistryStorage(podRegistry, containerInfo, registry.MakeFirstFitScheduler(machineList, podRegistry, random)),
"replicationControllers": registry.MakeControllerRegistryStorage(controllerRegistry),
"services": registry.MakeServiceRegistryStorage(serviceRegistry),
}