Skip to content
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

BUGFIX: IGNORE() deletes ignored records on ByZone() platforms #3263

Merged
merged 11 commits into from
Dec 19, 2024

Conversation

tlimoncelli
Copy link
Contributor

@tlimoncelli tlimoncelli commented Dec 18, 2024

Fixes #3227

Issue:

Providers that use diff2.ByZone() delete IGNORE()'d records.

This affects: AUTODNS BIND MYTHICBEASTS REALTIMEREGISTER SAKURACLOUD

Resolution:

ByZone() should return the list of Desired records PLUS the ignored/foreign records to be included in the zone that is generated. This requires refactoring to permit this data to be transferred between layers.

  • Add integration test that triggers this bug
  • Refactor diff2.ByZone() to return the records needed for the new zone (Desired + ignored + foreign records)
  • Update providers to use the new diff2.ByZone() signature (autodns bind mythicbeasts realtimeregister sakuracloud)
  • Fix lint warning in bindProvider.go

@tlimoncelli tlimoncelli changed the title BUG: IGNORE() deletes ignored records on ByZone() platforms BUGFIX: IGNORE() deletes ignored records on ByZone() platforms Dec 18, 2024
@tlimoncelli tlimoncelli merged commit a341022 into main Dec 19, 2024
17 checks passed
@tlimoncelli tlimoncelli deleted the tlim_b3227_byzonefix branch December 19, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

IGNORE()'d record deleted when other modifications are made (provider: MYTHICBEASTS)
1 participant