Rename type Port to ContainerPort
Sadly I had to do this by hand - I just could not get gorename to fix up users of it.
This commit is contained in:
@@ -64,7 +64,7 @@ var _ = Describe("Events", func() {
|
||||
{
|
||||
Name: "p",
|
||||
Image: "kubernetes/serve_hostname",
|
||||
Ports: []api.Port{{ContainerPort: 80}},
|
||||
Ports: []api.ContainerPort{{ContainerPort: 80}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@@ -109,7 +109,7 @@ var _ = Describe("Networking", func() {
|
||||
Name: "webserver",
|
||||
Image: "kubernetes/nettest:latest",
|
||||
Command: []string{"-service=" + name},
|
||||
Ports: []api.Port{{ContainerPort: 8080}},
|
||||
Ports: []api.ContainerPort{{ContainerPort: 8080}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@@ -108,7 +108,7 @@ var _ = Describe("Pods", func() {
|
||||
{
|
||||
Name: "nginx",
|
||||
Image: "dockerfile/nginx",
|
||||
Ports: []api.Port{{ContainerPort: 80}},
|
||||
Ports: []api.ContainerPort{{ContainerPort: 80}},
|
||||
LivenessProbe: &api.Probe{
|
||||
Handler: api.Handler{
|
||||
HTTPGet: &api.HTTPGetAction{
|
||||
@@ -167,7 +167,7 @@ var _ = Describe("Pods", func() {
|
||||
{
|
||||
Name: "nginx",
|
||||
Image: "dockerfile/nginx",
|
||||
Ports: []api.Port{{ContainerPort: 80}},
|
||||
Ports: []api.ContainerPort{{ContainerPort: 80}},
|
||||
LivenessProbe: &api.Probe{
|
||||
Handler: api.Handler{
|
||||
HTTPGet: &api.HTTPGetAction{
|
||||
@@ -238,7 +238,7 @@ var _ = Describe("Pods", func() {
|
||||
{
|
||||
Name: "srv",
|
||||
Image: "kubernetes/serve_hostname",
|
||||
Ports: []api.Port{{ContainerPort: 9376}},
|
||||
Ports: []api.ContainerPort{{ContainerPort: 9376}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@@ -86,7 +86,7 @@ func ServeImageOrFail(c *client.Client, test string, image string) {
|
||||
{
|
||||
Name: name,
|
||||
Image: image,
|
||||
Ports: []api.Port{{ContainerPort: 9376, HostPort: 8080}},
|
||||
Ports: []api.ContainerPort{{ContainerPort: 9376, HostPort: 8080}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
@@ -296,7 +296,7 @@ func addEndpointPodOrFail(c *client.Client, ns, name string, labels map[string]s
|
||||
{
|
||||
Name: "test",
|
||||
Image: "kubernetes/pause",
|
||||
Ports: []api.Port{{ContainerPort: 80}},
|
||||
Ports: []api.ContainerPort{{ContainerPort: 80}},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
Reference in New Issue
Block a user