From e3414066d4bbdf6bc6e6a0b49fb67563b3183d8c Mon Sep 17 00:00:00 2001 From: Kyle Martin Date: Tue, 7 Jun 2022 10:02:37 +1000 Subject: [PATCH] Clearly define error happened while filltering Ambassador hosts by annotation As suggested by @alebedev87 https://github.com/kubernetes-sigs/external-dns/pull/2633#discussion_r886822137 Co-authored-by: Andrey Lebedev --- source/ambassador_host.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/ambassador_host.go b/source/ambassador_host.go index f68ca0872d..907e589edb 100644 --- a/source/ambassador_host.go +++ b/source/ambassador_host.go @@ -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{}