Skip to content

Commit

Permalink
Handle error when calculating endpoints for NEG.
Browse files Browse the repository at this point in the history
  • Loading branch information
prameshj committed Jul 21, 2020
1 parent 8934f68 commit 0a01591
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/neg/syncers/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ func (s *transactionSyncer) syncInternal() error {
s.logStats(currentMap, "after in-progress operations have completed, NEG endpoints")

targetMap, endpointPodMap, err := s.endpointsCalculator.CalculateEndpoints(ep.(*apiv1.Endpoints), currentMap)
if err != nil {
return fmt.Errorf("endpoints calculation error in mode %q, err: %v", s.endpointsCalculator.Mode(), err)
}
s.logStats(targetMap, "desired NEG endpoints")

// Calculate the endpoints to add and delete to transform the current state to desire state
Expand Down

0 comments on commit 0a01591

Please sign in to comment.