Skip to content

Commit

Permalink
Clearly define error happened while filltering Ambassador hosts by an…
Browse files Browse the repository at this point in the history
…notation

As suggested by @alebedev87 kubernetes-sigs#2633 (comment)

Co-authored-by: Andrey Lebedev <[email protected]>
  • Loading branch information
KyleMartin901 and alebedev87 committed Jun 7, 2022
1 parent 25aff9e commit e341406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/ambassador_host.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ func (sc *ambassadorHostSource) Endpoints(ctx context.Context) ([]*endpoint.Endp
// Filter Ambassador Hosts
ambassadorHosts, err = sc.filterByAnnotations(ambassadorHosts)
if err != nil {
return nil, errors.Wrap(err, "failed to filter Ambassador Hosts")
return nil, errors.Wrap(err, "failed to filter Ambassador Hosts by annotation")
}

endpoints := []*endpoint.Endpoint{}
Expand Down

0 comments on commit e341406

Please sign in to comment.