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

Merge dnsnames annotations from multiple DNSAnnotation objects #352

Merged
merged 1 commit into from
Jan 29, 2024

Conversation

MartinWeindel
Copy link
Member

What this PR does / why we need it:
DNS "source" object, such as Service or Ingress, can be annotated in two ways: directly or through DNSAnnotation resources.
With the current behaviour, if multiple DNSAnnotation resources reference the same source object and use the same annotation key, only the value from the most recent DNSAnnotation resource will be used. This was implemented as a kind of conflict resolution, but is not optimal for the dns.gardener.cloud/dnsnames annotation.

This proposed change ensures that all dns.gardener.cloud/dnsnames from all sources, particularly from multiple DNSAnnotation resources, are combined and applied. This means that instead of only considering the most recent DNSAnnotation, all of them will now be considered.

Which issue(s) this PR fixes:
Fixes #351

Special notes for your reviewer:

Release note:

Merge `dns.gardener.cloud/dnsnames` annotations from multiple DNSAnnotation objects.

@MartinWeindel MartinWeindel requested a review from a team as a code owner January 26, 2024 17:00
@gardener-robot gardener-robot added needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) labels Jan 26, 2024
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Jan 26, 2024
@MartinWeindel MartinWeindel merged commit ea4e0ef into master Jan 29, 2024
8 checks passed
@MartinWeindel MartinWeindel deleted the enh/multi-dns-annotation branch January 29, 2024 07:49
@gardener-robot gardener-robot added the status/closed Issue is closed (either delivered or triaged) label Jan 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) needs/review Needs review size/m Size of pull request is medium (see gardener-robot robot/bots/size.py) status/closed Issue is closed (either delivered or triaged)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Merge dnsnames from multiple DNSAnnotation objects
3 participants