Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lahabana
Copy link
Contributor

Summary

In the past we were sometimes running into issues in dual stack setup
because we would only assign a v4 address and only A records would work.

Leverage Envoy's :ffff prefix to be able to have AAAA and an A record
when using a v4 cidr

Full changelog

  • Add multiple ips to envoy dns filter
  • Add v6 address when using v4 only leveraging envoy :ffff prefix

Testing

  • Unit tests
  • E2E tests
  • Manual testing on Universal
  • Manual testing on Kubernetes

Backwards compatibility

  • Add backport-to-stable label if the code is backwards compatible. Otherwise, list breaking changes.

In the past we were sometimes running into issues in dual stack setup
because we would only assign a v4 address and only A records would work.

Leverage Envoy's :ffff prefix to be able to have AAAA and an A record
when using a v4 cidr

Signed-off-by: Charly Molter <[email protected]>
@lahabana lahabana requested a review from a team as a code owner September 10, 2021 13:22
@codecov-commenter
Copy link

codecov-commenter commented Sep 13, 2021

Codecov Report

Merging #2760 (294db65) into master (858034a) will decrease coverage by 0.02%.
The diff coverage is 94.44%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2760      +/-   ##
==========================================
- Coverage   51.99%   51.96%   -0.03%     
==========================================
  Files         877      877              
  Lines       51142    51153      +11     
==========================================
- Hits        26589    26581       -8     
- Misses      22437    22464      +27     
+ Partials     2116     2108       -8     
Impacted Files Coverage Δ
pkg/dns/server.go 84.11% <83.33%> (-1.47%) ⬇️
pkg/util/net/ips.go 86.66% <100.00%> (+6.66%) ⬆️
pkg/xds/envoy/listeners/listener_configurers.go 96.22% <100.00%> (ø)
pkg/xds/envoy/listeners/v3/dns_configurer.go 96.82% <100.00%> (ø)
pkg/xds/generator/dns_generator.go 92.59% <100.00%> (+0.92%) ⬆️
pkg/insights/components.go 70.00% <0.00%> (-30.00%) ⬇️
pkg/core/resources/store/customizable_store.go 77.77% <0.00%> (-11.12%) ⬇️
.../core/managers/apis/ratelimit/ratelimit_manager.go 35.48% <0.00%> (-9.68%) ⬇️
pkg/events/eventbus.go 85.18% <0.00%> (-7.41%) ⬇️
pkg/plugins/resources/memory/store.go 77.71% <0.00%> (-4.35%) ⬇️
... and 7 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 858034a...294db65. Read the comment docs.

Signed-off-by: Charly Molter <[email protected]>
@lahabana lahabana merged commit 8be8c35 into kumahq:master Sep 13, 2021
mergify bot pushed a commit that referenced this pull request Sep 13, 2021
* feat(dns) internal dns should resolve AAAA records

In the past we were sometimes running into issues in dual stack setup
because we would only assign a v4 address and only A records would work.

Leverage Envoy's :ffff prefix to be able to have AAAA and an A record
when using a v4 cidr

Signed-off-by: Charly Molter <[email protected]>
(cherry picked from commit 8be8c35)
lahabana added a commit that referenced this pull request Sep 13, 2021
* feat(dns) internal dns should resolve AAAA records

In the past we were sometimes running into issues in dual stack setup
because we would only assign a v4 address and only A records would work.

Leverage Envoy's :ffff prefix to be able to have AAAA and an A record
when using a v4 cidr

Signed-off-by: Charly Molter <[email protected]>
(cherry picked from commit 8be8c35)

Co-authored-by: Charly Molter <[email protected]>
nikita15p pushed a commit to nikita15p/kuma that referenced this pull request Sep 28, 2021
* feat(dns) internal dns should resolve AAAA records

In the past we were sometimes running into issues in dual stack setup
because we would only assign a v4 address and only A records would work.

Leverage Envoy's :ffff prefix to be able to have AAAA and an A record
when using a v4 cidr

Signed-off-by: Charly Molter <[email protected]>
nikita15p pushed a commit to nikita15p/kuma that referenced this pull request Sep 28, 2021
* feat(dns) internal dns should resolve AAAA records

In the past we were sometimes running into issues in dual stack setup
because we would only assign a v4 address and only A records would work.

Leverage Envoy's :ffff prefix to be able to have AAAA and an A record
when using a v4 cidr

Signed-off-by: Charly Molter <[email protected]>
@lahabana lahabana deleted the feat/aaaa_dns branch March 29, 2024 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants