From 8f40d603f921a4fce8474c115e47b360b787ff4b Mon Sep 17 00:00:00 2001 From: Johan Euphrosine Date: Thu, 2 Oct 2014 17:42:25 -0700 Subject: [PATCH] podex: add build to travis --- .travis.yml | 1 + contrib/podex/podex.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 8822de94762..d4a3fb5bf72 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 3de8aab5061..bfde3e67388 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 {