Allow k8s ports to be referenced by name as well as number

This commit is contained in:
Ed Robinson
2016-05-18 17:30:42 +01:00
parent 6bacbf6cac
commit d13b755df2
2 changed files with 14 additions and 3 deletions

View File

@@ -21,7 +21,7 @@ func TestLoadIngresses(t *testing.T) {
Path: "/bar",
Backend: k8s.IngressBackend{
ServiceName: "service1",
ServicePort: k8s.FromInt(801),
ServicePort: k8s.FromString("http"),
},
},
},