Fix the rest of the code

This commit is contained in:
Clayton Coleman
2016-04-27 00:35:14 -04:00
parent 8d0187add2
commit fdb110c859
129 changed files with 625 additions and 663 deletions

View File

@@ -267,7 +267,7 @@ func TestPodFitsHost(t *testing.T) {
func newPod(host string, hostPorts ...int) *api.Pod {
networkPorts := []api.ContainerPort{}
for _, port := range hostPorts {
networkPorts = append(networkPorts, api.ContainerPort{HostPort: port})
networkPorts = append(networkPorts, api.ContainerPort{HostPort: int32(port)})
}
return &api.Pod{
Spec: api.PodSpec{
@@ -1487,7 +1487,7 @@ func TestPredicatesRegistered(t *testing.T) {
func newPodWithPort(hostPorts ...int) *api.Pod {
networkPorts := []api.ContainerPort{}
for _, port := range hostPorts {
networkPorts = append(networkPorts, api.ContainerPort{HostPort: port})
networkPorts = append(networkPorts, api.ContainerPort{HostPort: int32(port)})
}
return &api.Pod{
Spec: api.PodSpec{