Skip to content

Commit

Permalink
Merge pull request kubernetes#2555 from erictune/cleanup4
Browse files Browse the repository at this point in the history
Do not use nginx image in e2e test
  • Loading branch information
jbeda committed Nov 24, 2014
2 parents 4b2a5cd + b67b359 commit a25d865
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/e2e/e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
23 changes: 23 additions & 0 deletions cmd/e2e/pod.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit a25d865

Please sign in to comment.