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

Add IP Stack to DNSRecord resources #9289

Merged

Conversation

ScheererJ
Copy link
Contributor

@ScheererJ ScheererJ commented Feb 28, 2024

How to categorize this PR?

/area networking
/kind enhancement

What this PR does / why we need it:
For some DNS providers it might be beneficial to know the IP stack of the actual DNS record, e.g. ipv4 for A records and ipv4 for AAAA records. This is especially true for CNAME records, which are an alias for another name. Some DNS providers allow shortcuts, i.e. other means to achieve the equivalent of a CNAME record, but need knowledge about the target record's type. For those scenarios, it can be helpful to have the target IP stack directly available at the DNS record so that the corresponding DNS provider can directly use the information instead of having to query DNS to resolve the CNAME record.
This pull requests adds an annotation to the DNS records depending on the IPFamily of the shoot/seed clusters. This allows DNS providers to act accordingly.

Which issue(s) this PR fixes:
Fixes #

Special notes for your reviewer:

Release note:

`DNSRecord` resources for seed and shoot clusters now have an annotation indicating their target ip stack (`dns.gardener.cloud/ip-stack` set to either `ipv4`, `ipv6`, or `dual-stack`).

/cc @MartinWeindel

@gardener-prow gardener-prow bot added area/networking Networking related kind/enhancement Enhancement, improvement, extension cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Feb 28, 2024
@rfranzke
Copy link
Member

/assign

Copy link
Member

@MartinWeindel MartinWeindel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Feb 29, 2024
Copy link
Contributor

gardener-prow bot commented Feb 29, 2024

LGTM label has been added.

Git tree hash: 57ba8cf916b8035a08bc625e9cf1dfec5678acdb

Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice PR, well structured 😄
Can you maybe enhance the PR description to explain more about the motivation/use-case for this annotation?

pkg/utils/gardener/dns.go Outdated Show resolved Hide resolved
@gardener-prow gardener-prow bot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed lgtm Indicates that a PR is ready to be merged. labels Feb 29, 2024
@ScheererJ ScheererJ force-pushed the enhancement/dns-record-ip-stack branch from 15751b0 to dcc60da Compare February 29, 2024 16:16
@gardener-prow gardener-prow bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Feb 29, 2024
Copy link
Member

@rfranzke rfranzke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm
/approve

@gardener-prow gardener-prow bot added the lgtm Indicates that a PR is ready to be merged. label Mar 1, 2024
Copy link
Contributor

gardener-prow bot commented Mar 1, 2024

LGTM label has been added.

Git tree hash: 1bb7266e8201d3010e1ad7c1f1b376611a940709

Copy link
Contributor

gardener-prow bot commented Mar 1, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: MartinWeindel, rfranzke

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@gardener-prow gardener-prow bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Mar 1, 2024
@gardener-prow gardener-prow bot merged commit bdffece into gardener:master Mar 1, 2024
17 checks passed
@ScheererJ ScheererJ mentioned this pull request Mar 18, 2024
27 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/networking Networking related cla: yes Indicates the PR's author has signed the cla-assistant.io CLA. kind/enhancement Enhancement, improvement, extension lgtm Indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants