Repository navigation
fix(registry/crd): skip DNSRecord writes in dry-run - #6935
dominikhei wants to merge 2 commits into
Conversation
…th the untouched DNS records
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
Hi @dominikhei. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Tip We noticed you've done this a few times! Consider joining the org to skip this step and gain Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
|
PR title is used for the merged commit & the changelog. |
|
/ok-to-test |
Coverage Report for CI Build 42289466005Warning Build has drifted: This PR's base is out of sync with its target branch, so coverage data may include unrelated changes. Coverage increased (+0.05%) to 83.449%Details
Uncovered ChangesNo uncovered changes found. Coverage Regressions89 previously-covered lines in 4 files lost coverage.
Coverage Stats
💛 - Coveralls |
|
@mloiseleur the docs for the web hook provider don't clearly specify that it skips the |
What does it do ?
Makes the CRD registry (
--registry=crd) respect--dry-run. In dry-run mode,ApplyChangesnow logs theDNSRecordwrites it would make and only passes the changes on to the provider, which handles dry-run itself.Part of #6932
Motivation
Dry-run is only handled inside the providers. The CRD registry writes its ownership
DNSRecordobjects itself, so in dry-run it still created, updated and deleted them and marked themProgrammed, while the DNS records stayed untouched. external-dns then treated those records as applied, so after turning dry-run off they were never created in DNS. This is the same problem as the DynamoDB registry in #6932.End-to-end check against BIND in kind (
--provider=rfc2136 --registry=crd --dry-run,DNSEndpointfordry.example.test A 1.2.3.4):master
this branch
A normal sync without
--dry-runafterwards creates both the DNS record (1.2.3.4) and aProgrammedDNSRecord, as before.More