We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 25d272c commit c05bf75Copy full SHA for c05bf75
pkg/kubelet/nodestatus/setters.go
@@ -137,7 +137,8 @@ func NodeAddress(nodeIPs []net.IP, // typically Kubelet.nodeIPs
137
// required to ensure the external cloud provider will use the same addresses to avoid the issues explained
138
// in https://github.com/kubernetes/kubernetes/issues/120720.
139
// We are already hinting the external cloud provider via the annotation AnnotationAlphaProvidedIPAddr.
140
- if nodeIP == nil {
+ // if nodeIP == nil {
141
+ if !nodeIPSpecified {
142
node.Status.Addresses = []v1.NodeAddress{
143
{Type: v1.NodeHostName, Address: hostname},
144
}
0 commit comments