Skip to content

Commit

Permalink
Merge pull request #117224 from princepereira/automated-cherry-pick-o…
Browse files Browse the repository at this point in the history
…f-#116749-upstream-release-1.25

Automated cherry pick of #116749: Adding additional validations to queried endpoint
  • Loading branch information
k8s-ci-robot committed Jul 12, 2023
2 parents ee59f09 + 8ab3535 commit f3c0242
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkg/proxy/winkernel/hns.go
Expand Up @@ -97,6 +97,12 @@ func (hns hns) getAllEndpointsByNetwork(networkName string) (map[string]*(endpoi
}
endpointInfos := make(map[string]*(endpointsInfo))
for _, ep := range endpoints {

if len(ep.IpConfigurations) == 0 {
klog.V(3).InfoS("No IpConfigurations found in endpoint info of queried endpoints", "endpoint", ep)
continue
}

// Add to map with key endpoint ID or IP address
// Storing this is expensive in terms of memory, however there is a bug in Windows Server 2019 that can cause two endpoints to be created with the same IP address.
// TODO: Store by IP only and remove any lookups by endpoint ID.
Expand Down

0 comments on commit f3c0242

Please sign in to comment.