mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Fix the rest of the code
This commit is contained in:
@@ -55,7 +55,7 @@ func podWithID(id, desiredHost string) *api.Pod {
|
||||
func podWithPort(id, desiredHost string, port int) *api.Pod {
|
||||
pod := podWithID(id, desiredHost)
|
||||
pod.Spec.Containers = []api.Container{
|
||||
{Name: "ctr", Ports: []api.ContainerPort{{HostPort: port}}},
|
||||
{Name: "ctr", Ports: []api.ContainerPort{{HostPort: int32(port)}}},
|
||||
}
|
||||
return pod
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user