mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-04 23:17:50 +00:00
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:
@@ -32,7 +32,7 @@ import (
|
||||
|
||||
func TestFindPortByName(t *testing.T) {
|
||||
container := api.Container{
|
||||
Ports: []api.Port{
|
||||
Ports: []api.ContainerPort{
|
||||
{
|
||||
Name: "foo",
|
||||
HostPort: 8080,
|
||||
@@ -71,7 +71,7 @@ func TestGetURLParts(t *testing.T) {
|
||||
for _, test := range testCases {
|
||||
state := api.PodStatus{PodIP: "127.0.0.1"}
|
||||
container := api.Container{
|
||||
Ports: []api.Port{{Name: "found", HostPort: 93}},
|
||||
Ports: []api.ContainerPort{{Name: "found", HostPort: 93}},
|
||||
LivenessProbe: &api.Probe{
|
||||
Handler: api.Handler{
|
||||
HTTPGet: test.probe,
|
||||
@@ -114,7 +114,7 @@ func TestGetTCPAddrParts(t *testing.T) {
|
||||
for _, test := range testCases {
|
||||
host := "1.2.3.4"
|
||||
container := api.Container{
|
||||
Ports: []api.Port{{Name: "found", HostPort: 93}},
|
||||
Ports: []api.ContainerPort{{Name: "found", HostPort: 93}},
|
||||
LivenessProbe: &api.Probe{
|
||||
Handler: api.Handler{
|
||||
TCPSocket: test.probe,
|
||||
|
||||
Reference in New Issue
Block a user