mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-03 17:30:00 +00:00
Merge pull request #44167 from soundcloud/mr/restore-updating-endpoints-log-message
Automatic merge from submit-queue Restore "Setting endpoints" log message **What this PR does / why we need it**: The "Setting endpoints" message from kube-proxy at high verbosity was lost as part of a larger simplification in kubernetes/kubernetes#42747. This change brings it back, simply outputting the just-constructed addresses list. I need this message to monitor delays in propagating endpoints changes across nodes. **Release note**: ```release-note NONE ```
This commit is contained in:
commit
6cd23c6023
@ -662,6 +662,13 @@ func accumulateEndpointsMap(endpoints *api.Endpoints, hostname string,
|
|||||||
}
|
}
|
||||||
(*newEndpoints)[svcPort] = append((*newEndpoints)[svcPort], epInfo)
|
(*newEndpoints)[svcPort] = append((*newEndpoints)[svcPort], epInfo)
|
||||||
}
|
}
|
||||||
|
if glog.V(3) {
|
||||||
|
newEPList := []string{}
|
||||||
|
for _, ep := range (*newEndpoints)[svcPort] {
|
||||||
|
newEPList = append(newEPList, ep.endpoint)
|
||||||
|
}
|
||||||
|
glog.Infof("Setting endpoints for %q to %+v", svcPort, newEPList)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user