mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +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:
@@ -73,7 +73,7 @@ func TestSetDefaulPodSpec(t *testing.T) {
|
||||
func TestSetDefaultContainer(t *testing.T) {
|
||||
bp := ¤t.BoundPod{}
|
||||
bp.Spec.Containers = []current.Container{{}}
|
||||
bp.Spec.Containers[0].Ports = []current.Port{{}}
|
||||
bp.Spec.Containers[0].Ports = []current.ContainerPort{{}}
|
||||
|
||||
obj2 := roundTrip(t, runtime.Object(bp))
|
||||
bp2 := obj2.(*current.BoundPod)
|
||||
|
||||
Reference in New Issue
Block a user