-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore ambassador-hosts with invalid annotations #3008
Ignore ambassador-hosts with invalid annotations #3008
Conversation
Thanks code looks fine. |
As mentioned, its not entirely straightforward to introduce unit test to that code. Would need to wire up the dynamic client and such. It would be a significantly larger PR alone. But this source is important to us, so I don't mind doing another PR for that. It will take a few days maybe. |
If e.g the ambassador service annotation points to an nonexisting service, external-dns will not update any DNS records. This PR makes external-dns ignore the host and carry on instead.
d63e003
to
a1a9091
Compare
@szuecs added test only for this particular bug now. |
Thanks @olemarkus ! |
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: olemarkus, szuecs The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @szuecs and @olemarkus I have added tests in my PR that also updates the Ambassador source to use label and annotation filters #2633. If you wouldn't mind taking a look that would be awesome. I will have to refactor based on this PR |
@KyleMartin901 The PR looks good, I think. Ping me when you've refactored. I can review, but I cannot merge, unfortunately. |
Thanks, @olemarkus I managed to find some time to rebase the tests today so 🤞 it's all good. |
Description
If e.g the ambassador service annotation points to an nonexisting service, external-dns will not update any DNS records. This PR makes external-dns ignore the host and carry on instead.
Didn't provide any unit tests as this code didn't seem to have anything like a fake client that knows about ambassador hosts. Did however validate the logic in a live cluster.