diff --git a/.travis.yml b/.travis.yml index 8822de94762ae..d4a3fb5bf72ae 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ install: - ./hack/verify-boilerplate.sh - ./hack/install-std-race.sh - ./hack/build-go.sh + - go get ./contrib/podex script: - KUBE_TIMEOUT='-timeout 60s' ./hack/test-go.sh diff --git a/contrib/podex/podex.go b/contrib/podex/podex.go index 3de8aab50610d..bfde3e67388eb 100644 --- a/contrib/podex/podex.go +++ b/contrib/podex/podex.go @@ -98,7 +98,7 @@ func main() { manifest.Containers[0].Ports = append(manifest.Containers[0].Ports, v1beta1.Port{ Name: strings.Join([]string{baseName, p.Proto(), p.Port()}, "-"), ContainerPort: port, - Protocol: strings.ToUpper(p.Proto()), + Protocol: v1beta1.Protocol(strings.ToUpper(p.Proto())), }) } if *generateJSON {