• Kubernetes Submit Queue's avatar
    Merge pull request #41805 from aanm/adding-ipv6-brackets-in-kubectl-endpoint · 74c23bdf
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    kubectl: Adding IPv6 brackets for IPv6 endpoints
    
    This fixes the lack of IPv6 when printing the IP:Port tuple with kubectl
    describe command.
    Signed-off-by: 's avatarAndré Martins <aanm90@gmail.com>
    
    **What this PR does / why we need it**: This adds IPv6 brackets on IPv6 endpoints when using `kubectl describe service`
    
    **Special notes for your reviewer**: Since the IP is a string I think the fastest way to detect if it's an IPv6 was to check for the presence of : in it. Let me know what you think.
    74c23bdf
Name
Last commit
Last update
..
internalversion Loading commit data...
.import-restrictions Loading commit data...
BUILD Loading commit data...
OWNERS Loading commit data...
common.go Loading commit data...
customcolumn.go Loading commit data...
customcolumn_test.go Loading commit data...
humanreadable.go Loading commit data...
interface.go Loading commit data...
json.go Loading commit data...
jsonpath.go Loading commit data...
name.go Loading commit data...
printers.go Loading commit data...
tabwriter.go Loading commit data...
template.go Loading commit data...
versioned.go Loading commit data...