mirror of
https://github.com/kubernetes-sigs/external-dns.git
synced 2025-08-05 17:16:59 +02:00
Add AAAA to supported record types
This commit is contained in:
parent
94d09b37dc
commit
9bb9a80c71
@ -17,10 +17,10 @@ limitations under the License.
|
||||
package provider
|
||||
|
||||
// SupportedRecordType returns true only for supported record types.
|
||||
// Currently A, CNAME, SRV, TXT and NS record types are supported.
|
||||
// Currently A, AAAA, CNAME, SRV, TXT and NS record types are supported.
|
||||
func SupportedRecordType(recordType string) bool {
|
||||
switch recordType {
|
||||
case "A", "CNAME", "SRV", "TXT", "NS":
|
||||
case "A", "AAAA", "CNAME", "SRV", "TXT", "NS":
|
||||
return true
|
||||
default:
|
||||
return false
|
||||
|
@ -27,6 +27,10 @@ func TestRecordTypeFilter(t *testing.T) {
|
||||
"A",
|
||||
true,
|
||||
},
|
||||
{
|
||||
"AAAA",
|
||||
true,
|
||||
},
|
||||
{
|
||||
"CNAME",
|
||||
true,
|
||||
|
@ -256,7 +256,7 @@ func TestProviderRecords(t *testing.T) {
|
||||
|
||||
endpoints, err := p.Records(context.TODO())
|
||||
if assert.NoError(t, err) {
|
||||
if assert.Equal(t, 2, len(endpoints)) {
|
||||
if assert.Equal(t, 4, len(endpoints)) {
|
||||
assert.Equal(t, "www.example.org", endpoints[0].DNSName)
|
||||
assert.EqualValues(t, "@", endpoints[0].Targets[0])
|
||||
assert.Equal(t, "CNAME", endpoints[0].RecordType)
|
||||
|
Loading…
Reference in New Issue
Block a user