mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-12 12:48:51 +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:
@@ -60,9 +60,9 @@ func (st *schedulerTester) expectFailure(pod api.Pod) {
|
||||
}
|
||||
|
||||
func newPod(host string, hostPorts ...int) api.Pod {
|
||||
networkPorts := []api.Port{}
|
||||
networkPorts := []api.ContainerPort{}
|
||||
for _, port := range hostPorts {
|
||||
networkPorts = append(networkPorts, api.Port{HostPort: port})
|
||||
networkPorts = append(networkPorts, api.ContainerPort{HostPort: port})
|
||||
}
|
||||
return api.Pod{
|
||||
Status: api.PodStatus{
|
||||
|
Reference in New Issue
Block a user