Do not use nginx image in e2e test

This commit is contained in:
Eric Tune 2014-11-23 06:44:49 -08:00
parent 162e4983b9
commit b67b359a1b
2 changed files with 24 additions and 1 deletions

View File

@ -182,7 +182,7 @@ func TestKubeletSendsEvent(c *client.Client) bool {
podClient := c.Pods(api.NamespaceDefault)
pod := loadPodOrDie("./api/examples/pod.json")
pod := loadPodOrDie("./cmd/e2e/pod.json")
value := strconv.Itoa(time.Now().Nanosecond())
pod.Labels["time"] = value

23
cmd/e2e/pod.json Normal file
View File

@ -0,0 +1,23 @@
{
"kind": "Pod",
"apiVersion": "v1beta1",
"id": "p",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "p",
"containers": [{
"name": "p",
"image": "kubernetes/serve_hostname",
"ports": [{
"containerPort": 80,
"hostPort": 8080
}],
}]
}
},
"labels": {
"name": "foo"
}
}