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

AWS Provider incorrectly makes all alias records RecordTypeA #4897

Open
jtszalay opened this issue Nov 25, 2024 · 3 comments
Open

AWS Provider incorrectly makes all alias records RecordTypeA #4897

jtszalay opened this issue Nov 25, 2024 · 3 comments
Labels
area/provider/aws Issues or PRs related to aws provider help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.

Comments

@jtszalay
Copy link
Contributor

jtszalay commented Nov 25, 2024

What happened:

I have a AAAA alias record. The AWS provider translates the record into an A record.

See:
https://github.com/kubernetes-sigs/external-dns/blob/master/provider/aws/aws.go#L1142
https://github.com/kubernetes-sigs/external-dns/blob/master/provider/aws/aws.go#L486
https://github.com/kubernetes-sigs/external-dns/blob/master/provider/aws/aws.go#L779

This results in my A and AAAA aliases with the same name colliding.

What you expected to happen:
I expect AAAA records to be treated as AAAA.

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

I have a CRD with:

spec:
  endpoints:
    - dnsName: my.example.com
      labels:
        k8slens-edit-resource-version: v1
      providerSpecific:
        - name: aws/evaluate-target-health
          value: 'true'
        - name: alias
          value: 'true'
        - name: aws/region
          value: eu-west-2
        - name: aws/target-hosted-zone
          value: ZONEIDHERE
      recordType: AAAA
      setIdentifier: myid-1
      targets:
        - myother.example.com

This fails to create heritage record and the alias record.

Anything else we need to know?:

I found this somewhat related PR: #3605

Environment:

  • External-DNS version (use external-dns --version): 0.15.0
  • DNS provider: AWS
  • Others: Source is CRD
@jtszalay jtszalay added the kind/bug Categorizes issue or PR as related to a bug. label Nov 25, 2024
@ivankatliarchuk
Copy link
Contributor

Will be partially resolved when this fix is merged #4889

@ivankatliarchuk
Copy link
Contributor

/help
/area provider/aws

@k8s-ci-robot
Copy link
Contributor

@ivankatliarchuk:
This request has been marked as needing help from a contributor.

Guidelines

Please ensure that the issue body includes answers to the following questions:

  • Why are we solving this issue?
  • To address this issue, are there any code changes? If there are code changes, what needs to be done in the code and what places can the assignee treat as reference points?
  • Does this issue have zero to low barrier of entry?
  • How can the assignee reach out to you for help?

For more details on the requirements of such an issue, please see here and ensure that they are met.

If this request no longer meets these requirements, the label can be removed
by commenting with the /remove-help command.

In response to this:

/help
/area provider/aws

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added area/provider/aws Issues or PRs related to aws provider help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. labels Feb 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/provider/aws Issues or PRs related to aws provider help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

3 participants