mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-15 14:14:39 +00:00
Revert "Multi-port Endpoints"
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.ContainerPort{}
|
||||
networkPorts := []api.Port{}
|
||||
for _, port := range hostPorts {
|
||||
networkPorts = append(networkPorts, api.ContainerPort{HostPort: port})
|
||||
networkPorts = append(networkPorts, api.Port{HostPort: port})
|
||||
}
|
||||
return api.Pod{
|
||||
Status: api.PodStatus{
|
||||
|
Reference in New Issue
Block a user