External-dns: CRD unable to create DNSEndpoint of record types other than A or CNAME

Created on 25 Jun 2020  路  8Comments  路  Source: kubernetes-sigs/external-dns

What happened:

Applied the following DNSEndpoint resource:

apiVersion: externaldns.k8s.io/v1alpha1
kind: DNSEndpoint
metadata:
  name: examplednsrecord
spec:
  endpoints:
  - dnsName: foo.bar.com
    recordTTL: 180
    recordType: TXT
    targets:
    - "test"

This results in no resource created. Even in debug mode, there is no object even mentioned.

As soon as I kubectl edit dnsendpoint examplednsrecord to change it from TXT to CNAME I see the following output.

{"level":"debug","msg":"Adding foo.bar.com. to zone ffxblue.io. [Id: /hostedzone/...]","time":"2020-06-25T08:40:24Z"}
{"level":"debug","msg":"Adding foo-txt.bar.com. to zone ffxblue.io. [Id: /hostedzone/...]","time":"2020-06-25T08:40:24Z"}
{"level":"info","msg":"Desired change: CREATE foo.bar.com CNAME [Id: /hostedzone/...]","time":"2020-06-25T08:40:24Z"}
{"level":"info","msg":"Desired change: CREATE foo-txt.bar.com TXT [Id: /hostedzone/..]","time":"2020-06-25T08:40:24Z"}

What you expected to happen:

It is expected that the DNSEndpoint should be able to create all record types. The comments in the source code specifically list SRV and TXT records. My initially attempts were a MX record which also failed.

Attempting to use the providerSpecific options to create the exact record also did not work.

How to reproduce it (as minimally and precisely as possible):

Apply the YAML I provided at the start of this issue and change the dnsName to be a valid zone that external-dns is managing.

All my tests have been using AWS. Uncertain if this is an issue with other providers.

Anything else we need to know?:

Environment:

  • External-DNS version (use external-dns --version): 0.7.2
  • DNS provider: AWS
  • Others:

    • The option preferCNAME enabled.

    • Policy set to sync.

    • Using the Bitnami Helm chart.

kinbug

All 8 comments

I can confirm this behavior, have seen it before for TXT.

/assign @ytsarev

@ytsarev are you able to take a look at that given that you are assigned?

@Raffo yes, i have it in the pipeline

(Possibly reopen? I think the Partially fixes #... in #1813 may have triggered an early close here)

/reopen

@seanmalloy: Reopened this issue.

In response to this:

/reopen

Instructions 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/test-infra repository.

Is there any update regarding this issue?

Was this page helpful?
0 / 5 - 0 ratings