-
Notifications
You must be signed in to change notification settings - Fork 8
fix: support AAAA records properly #98
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
Open
mojansch
wants to merge
4
commits into
inovex:main
Choose a base branch
from
scaleup-technologies:fix/aaaa-recordset-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c4cdd70
fix: include AAAA recordsets in Records()
mojansch 70aba52
fix: correct dnsName assertion in AAAA devstack check
mojansch 76c02c2
refactor: use openstack cli filtering for devstack workflow
mojansch 0cf6cba
refactor: add supported record type filter function
mojansch File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -297,6 +297,11 @@ func TestDesignateRecords(t *testing.T) { | |
| TTL: 120, | ||
| Records: []string{"10.1.1.2"}, | ||
| }) | ||
| rs15ID, _ := client.CreateRecordSet(ctx, zone1ID, recordsets.CreateOpts{ | ||
| Name: "www6.example.com.", | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I know we are not yet following this yet, but I'd like to use the test. TLD as per RFC 6761. Edit: I know the Fake source of external-dns does only create "example.com" records though. |
||
| Type: endpoint.RecordTypeAAAA, | ||
| Records: []string{"2001:db8::1"}, | ||
| }) | ||
|
|
||
| zone2ID := client.AddZone(ctx, zones.Zone{ | ||
| Name: "test.net.", | ||
|
|
@@ -345,6 +350,16 @@ func TestDesignateRecords(t *testing.T) { | |
| designateOriginalRecords: "10.1.1.2", | ||
| }, | ||
| }, | ||
| { | ||
| DNSName: "www6.example.com", | ||
| RecordType: endpoint.RecordTypeAAAA, | ||
| Targets: endpoint.Targets{"2001:db8::1"}, | ||
| Labels: map[string]string{ | ||
| designateRecordSetID: rs15ID, | ||
| designateZoneID: zone1ID, | ||
| designateOriginalRecords: "2001:db8::1", | ||
| }, | ||
| }, | ||
| { | ||
| DNSName: "srv.test.net", | ||
| RecordType: endpoint.RecordTypeA, | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for not just not testing things, but for thinking outside the box to work around external-dns in this case. But actually the Fake source does support other record types, see kubernetes-sigs/external-dns#6308.
I know this has not made it into a release, but 0.22 is indeed planned: kubernetes-sigs/external-dns#6607