mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 07:57:35 +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:
@@ -38,7 +38,7 @@ func TestResolvePortString(t *testing.T) {
|
||||
expected := 80
|
||||
name := "foo"
|
||||
container := &api.Container{
|
||||
Ports: []api.Port{
|
||||
Ports: []api.ContainerPort{
|
||||
{Name: name, ContainerPort: expected},
|
||||
},
|
||||
}
|
||||
@@ -55,7 +55,7 @@ func TestResolvePortStringUnknown(t *testing.T) {
|
||||
expected := 80
|
||||
name := "foo"
|
||||
container := &api.Container{
|
||||
Ports: []api.Port{
|
||||
Ports: []api.ContainerPort{
|
||||
{Name: "bar", ContainerPort: expected},
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user