From 581f4613c88fc51f4fff0488124842c995423d47 Mon Sep 17 00:00:00 2001 From: BC Broussard Date: Thu, 28 May 2015 12:09:31 -0700 Subject: [PATCH] Fix NodePort in kubectl describe service --- pkg/kubectl/describe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/kubectl/describe.go b/pkg/kubectl/describe.go index 30c54e1a378..992342c95e6 100644 --- a/pkg/kubectl/describe.go +++ b/pkg/kubectl/describe.go @@ -520,7 +520,7 @@ func describeService(service *api.Service, endpoints *api.Endpoints, events *api } fmt.Fprintf(out, "Port:\t%s\t%d/%s\n", name, sp.Port, sp.Protocol) if sp.NodePort != 0 { - fmt.Fprintf(out, "NodePort:\t%s\t%d/%s\n", name, sp.Port, sp.Protocol) + fmt.Fprintf(out, "NodePort:\t%s\t%d/%s\n", name, sp.NodePort, sp.Protocol) } fmt.Fprintf(out, "Endpoints:\t%s\t%s\n", name, formatEndpoints(endpoints, util.NewStringSet(sp.Name))) }