• Kubernetes Submit Queue's avatar
    Merge pull request #45036 from apilloud/fix_resolvconf · 43dcf0f5
    Kubernetes Submit Queue authored
    Automatic merge from submit-queue
    
    resolv.conf nameserver line has only one entry, ignore trailing garbage
    
    **What this PR does / why we need it**:
    
    Per the resolv.conf man page "name servers may be  listed,  one  per  keyword." Some tools such as udhcpc take advantage of this to append comments to nameserver entries. For example: `nameserver 8.8.8.8 # eth0`. This updates the resolv.conf parser to ignore trailing garbage on nameserver lines.
    
    **Release note**:
    NONE
    43dcf0f5
kubelet_network_test.go 8.44 KB