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
Handle the migration to the new TXT format: missing records to be created separately #2913
Handle the migration to the new TXT format: missing records to be created separately #2913
Conversation
/assign @Raffo |
Thanks for this PR! I will build an image and test it. Can you add unit tests in the meantime? |
4ef06a2
to
e2eb6c9
Compare
@Raffo : added a test which checks that a new plan is applied in case there are missing records. |
e2eb6c9
to
0feb32d
Compare
I e2e tested this, LGTM /approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alebedev87, Raffo 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 |
This upgrade contains this fix which affects users kubernetes-sigs/external-dns#2913
Description
Follow-up of #2811. Aims at addressing the following error when the missing new format TXT record gets created and deleted in the same batch:
This error may happen when the DNS record was created with the external-dns of version
< 0.12.0
then the target of the source changed (ClusterIP, LoadBalancer's DNS record, HostIP) and then the new (> 0.12.0
) version kicks the migration logic. The migration code sees that there is a new format TXT record is missing and adds it as "to be created" however the target changed and A/CNAME record needs to be changed too along with its TXT records.Checklist