Skip to content

Commit c05bf75

Browse files
committed
UPSTREAM: <drop>: attempt to fix pathological events
1 parent 25d272c commit c05bf75

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pkg/kubelet/nodestatus/setters.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,8 @@ func NodeAddress(nodeIPs []net.IP, // typically Kubelet.nodeIPs
137137
// required to ensure the external cloud provider will use the same addresses to avoid the issues explained
138138
// in https://github.com/kubernetes/kubernetes/issues/120720.
139139
// We are already hinting the external cloud provider via the annotation AnnotationAlphaProvidedIPAddr.
140-
if nodeIP == nil {
140+
// if nodeIP == nil {
141+
if !nodeIPSpecified {
141142
node.Status.Addresses = []v1.NodeAddress{
142143
{Type: v1.NodeHostName, Address: hostname},
143144
}

0 commit comments

Comments
 (0)