Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
Signed-off-by: Clayton Gonsalves <[email protected]>
  • Loading branch information
clayton-gonsalves committed Sep 5, 2023
1 parent f57b063 commit 5a3be4c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion internal/xdscache/v3/endpointslicetranslator.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ func RecalculateEndpointsSlice(port, healthPort v1.ServicePort, endpointSliceMap
// Clients of the EndpointSlice API must iterate through all the existing EndpointSlices associated to
// a Service and build a complete list of unique network endpoints. It is important to mention that
// endpoints may be duplicated in different EndpointSlices.
// Hence, we need to ensure that the endpoints we add to []*LoadBalancingEndpoint arent duplicated.
// Hence, we need to ensure that the endpoints we add to []*LoadBalancingEndpoint aren't duplicated.
endpointKey := fmt.Sprintf("%s:%d", endpoint.Addresses[0], *p.Port)
if _, exists := uniqueEndpoints[endpointKey]; !exists {
lb = append(lb, envoy_v3.LBEndpoint(addr))
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/infra/endpointslice_test.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//go:build e2e

package infra

// Copyright Project Contour Authors
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -15,6 +11,10 @@ package infra
// See the License for the specific language governing permissions and
// limitations under the License.

//go:build e2e

package infra

import (
"time"

Expand Down

0 comments on commit 5a3be4c

Please sign in to comment.