Commit 544e9add authored by Alena Prokharchyk's avatar Alena Prokharchyk Committed by Darren Shepherd
Browse files

Consider worker only node when get address for endpoint

parent 5ce907e8
Showing with 1 addition and 1 deletion
+1 -1
......@@ -270,7 +270,7 @@ func getAllNodesPublicEndpointIP(machineLister managementv3.NodeLister, clusterN
return "", err
}
for _, machine := range machines {
if isMachineReady(machine) {
if machine.Spec.Worker && isMachineReady(machine) {
nodePublicIP := net.ParseIP(nodehelper.GetEndpointNodeIP(machine))
if nodePublicIP.String() != "" {
addresses = append(addresses, nodePublicIP)
......
Supports Markdown
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