mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
Do not use nginx image in e2e test
This commit is contained in:
parent
162e4983b9
commit
b67b359a1b
@ -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
23
cmd/e2e/pod.json
Normal 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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user