-
Notifications
You must be signed in to change notification settings - Fork 327
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
fix(dns): Ensure outbounds are set when migrating from old to new #2698
Conversation
There's a bug when migrating from one version to the other. This is caused by the fact that we don't set OutboundEntry when migrating from old to new format. This patch: - Adds validation on VirtualOutboundView to avoid this in the future - Adds an OutboundEntry for Services with a single tag - Adds an OutboundEntry for ExternalServices by fetching back the original virtual service to retrieve its serviceName Signed-off-by: Charly Molter <charly.molter@konghq.com>
Codecov Report
@@ Coverage Diff @@
## master #2698 +/- ##
==========================================
+ Coverage 51.94% 52.04% +0.10%
==========================================
Files 871 871
Lines 49518 49543 +25
==========================================
+ Hits 25721 25784 +63
+ Misses 21716 21671 -45
- Partials 2081 2088 +7
Continue to review full report at Codecov.
|
pkg/dns/vips/persistence.go
Outdated
} | ||
srvByHost := map[string]*core_mesh.ExternalServiceResource{} | ||
for _, s := range externalServices.Items { | ||
srvByHost[s.Spec.GetHost()] = s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The host is not unique, I think you have to use networking.address
here
Signed-off-by: Charly Molter <charly.molter@konghq.com>
) * fix(dns): Ensure outbounds are set when migrating from old to new There's a bug when migrating from one version to the other. This is caused by the fact that we don't set OutboundEntry when migrating from old to new format. This patch: - Adds validation on VirtualOutboundView to avoid this in the future - Adds an OutboundEntry for Services with a single tag - Adds an OutboundEntry for ExternalServices by fetching back the original virtual service to retrieve its serviceName Signed-off-by: Charly Molter <charly.molter@konghq.com> (cherry picked from commit 203c072)
) (#2699) * fix(dns): Ensure outbounds are set when migrating from old to new There's a bug when migrating from one version to the other. This is caused by the fact that we don't set OutboundEntry when migrating from old to new format. This patch: - Adds validation on VirtualOutboundView to avoid this in the future - Adds an OutboundEntry for Services with a single tag - Adds an OutboundEntry for ExternalServices by fetching back the original virtual service to retrieve its serviceName Signed-off-by: Charly Molter <charly.molter@konghq.com> (cherry picked from commit 203c072) Co-authored-by: Charly Molter <charly.molter@konghq.com>
…mahq#2698) * fix(dns): Ensure outbounds are set when migrating from old to new There's a bug when migrating from one version to the other. This is caused by the fact that we don't set OutboundEntry when migrating from old to new format. This patch: - Adds validation on VirtualOutboundView to avoid this in the future - Adds an OutboundEntry for Services with a single tag - Adds an OutboundEntry for ExternalServices by fetching back the original virtual service to retrieve its serviceName Signed-off-by: Charly Molter <charly.molter@konghq.com>
…mahq#2698) * fix(dns): Ensure outbounds are set when migrating from old to new There's a bug when migrating from one version to the other. This is caused by the fact that we don't set OutboundEntry when migrating from old to new format. This patch: - Adds validation on VirtualOutboundView to avoid this in the future - Adds an OutboundEntry for Services with a single tag - Adds an OutboundEntry for ExternalServices by fetching back the original virtual service to retrieve its serviceName Signed-off-by: Charly Molter <charly.molter@konghq.com>
Summary
There's a bug when migrating from one version to the other.
This is caused by the fact that we don't set OutboundEntry when
migrating from old to new format.
Full changelog
virtual service to retrieve its serviceName
Testing
Backwards compatibility
backport-to-stable
label if the code is backwards compatible. Otherwise, list breaking changes.