Skip to content

Commit

Permalink
Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
jan.walther committed Sep 9, 2024
1 parent 899b830 commit d21e6a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/envoy/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func MapSnapshot(ctx context.Context, client ctrlclient.Client, loadBalancers []
// log.Info("Adding endpoint", "name", lbEndpoint.AddressesReference.Name)
if lbEndpoint.AddressesReference != nil {
// Check if map already contains the key
if val, ok := addressesMap[fmt.Sprintf(endpointAddressReferencePattern, lb.Namespace, lbEndpoint.AddressesReference.Name)]; ok {
if val, ok := addressesMap[fmt.Sprintf(endpointAddressReferencePattern, lb.Namespace, lbEndpoint.AddressesReference.Name)]; ok && len(lbs) == 1 {
lb.Spec.Endpoints[i].Addresses = val
//continue
} else {
Expand Down

0 comments on commit d21e6a5

Please sign in to comment.