mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
AWS: kubectl get service should print hostnames for LoadBalancer services
Fixes #21526 Also test wide outputs. We only guarantee the first IP to be fully printed if multiple ingresses are present. For AWS, which has no ingress IPs, but only hostnames, the ELB hostname will be truncated, unless -o=wide is specified.
This commit is contained in:
@@ -1294,7 +1294,7 @@ func (i *IngressDescriber) describeIngress(ing *extensions.Ingress, describerSet
|
||||
return tabbedString(func(out io.Writer) error {
|
||||
fmt.Fprintf(out, "Name:\t%v\n", ing.Name)
|
||||
fmt.Fprintf(out, "Namespace:\t%v\n", ing.Namespace)
|
||||
fmt.Fprintf(out, "Address:\t%v\n", loadBalancerStatusStringer(ing.Status.LoadBalancer))
|
||||
fmt.Fprintf(out, "Address:\t%v\n", loadBalancerStatusStringer(ing.Status.LoadBalancer, true))
|
||||
def := ing.Spec.Backend
|
||||
ns := ing.Namespace
|
||||
if def == nil {
|
||||
|
||||
Reference in New Issue
Block a user