Skip to content

Commit

Permalink
Merge pull request #1192 from prameshj/err-handle
Browse files Browse the repository at this point in the history
Handle error when calculating endpoints for NEG.
  • Loading branch information
k8s-ci-robot authored Jul 21, 2020
2 parents c3026d8 + 0a01591 commit 82122cd
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 82122cd

Please sign in to comment.