Commit 7841d57b authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #39416 from NickrenREN/master-externalAddresses

Automatic merge from submit-queue optimize externalAddresses() return
parents 4398e1ed 4ae0423d
...@@ -361,7 +361,7 @@ type nodeAddressProvider struct { ...@@ -361,7 +361,7 @@ type nodeAddressProvider struct {
nodeClient corev1client.NodeInterface nodeClient corev1client.NodeInterface
} }
func (n nodeAddressProvider) externalAddresses() (addresses []string, err error) { func (n nodeAddressProvider) externalAddresses() ([]string, error) {
preferredAddressTypes := []apiv1.NodeAddressType{ preferredAddressTypes := []apiv1.NodeAddressType{
apiv1.NodeExternalIP, apiv1.NodeExternalIP,
apiv1.NodeLegacyHostIP, apiv1.NodeLegacyHostIP,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment