mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 03:57:41 +00:00
Do not mark errorFetchingAddressFromLease, in case when the there's no address being fetched from the lease object
This commit is contained in:
parent
80941e3e87
commit
ac3fd5c634
@ -203,7 +203,6 @@ func (h *peerProxyHandler) findServiceableByServers(gvr schema.GroupVersionResou
|
|||||||
apiservers.Range(func(key, value interface{}) bool {
|
apiservers.Range(func(key, value interface{}) bool {
|
||||||
apiserverKey := key.(string)
|
apiserverKey := key.(string)
|
||||||
if apiserverKey == localAPIServerId {
|
if apiserverKey == localAPIServerId {
|
||||||
response.errorFetchingAddressFromLease = true
|
|
||||||
response.locallyServiceable = true
|
response.locallyServiceable = true
|
||||||
// stop iteration
|
// stop iteration
|
||||||
return false
|
return false
|
||||||
@ -221,11 +220,9 @@ func (h *peerProxyHandler) findServiceableByServers(gvr schema.GroupVersionResou
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
response.errorFetchingAddressFromLease = true
|
response.errorFetchingAddressFromLease = true
|
||||||
klog.Errorf("invalid address found for server %s", apiserverKey)
|
klog.Errorf("invalid address found for server %s", apiserverKey)
|
||||||
// continue with iteration
|
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
peerServerEndpoints = append(peerServerEndpoints, hostPort)
|
peerServerEndpoints = append(peerServerEndpoints, hostPort)
|
||||||
// continue with iteration
|
|
||||||
return true
|
return true
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user