-
Notifications
You must be signed in to change notification settings - Fork 35
Remove the deprecated domain annotation on Load balancer services in … #722
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
base: main
Are you sure you want to change the base?
Conversation
…favor of the url annotation
| }) | ||
| }) | ||
|
|
||
| When("service has domain annotation", func() { |
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.
I think you can remove this entire block, we should have a test up above for the TLS url annotation if I'm not mistaken.
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #722 +/- ##
==========================================
- Coverage 48.98% 48.91% -0.07%
==========================================
Files 95 95
Lines 10594 10591 -3
==========================================
- Hits 5189 5181 -8
- Misses 5046 5047 +1
- Partials 359 363 +4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
| return err | ||
| default: // computedURL not present, fallback to the domain annotation | ||
| domain, err := parser.GetStringAnnotation("domain", svc) | ||
| default: // computedURL not present, fallback to parsing the URL annotation |
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.
I think there is a tricky case here with removing domain.
- When we were using the
domainannotation it implied that it was a TLS service. This also implied that the domain should be reserved and that we'd have a domain status to get. The core piece is that we were only looking at domain which would only be for TLS services. - The reason we introduced the internal
computed-urlannotation is that we had to handle thetcp://case, where it means: "Please give me a random TCP url and keep using it". We don't own the spec Service and we don't currently have aTCPAddrCRD (maybe we should now), so we needed a place to store the reserved addr. - Now that domain annotation is removed, if we don't have the
computed-urlannotation (the default case here), it looks like we are still going to try to parsetcp://instead and use that to update the status.
What do you think?
…favor of the url annotation
What
This has been deprecated for a while in favor of the k8s.ngrok.com/url annotation. We should remove this
How
Simply removes the old code paths and updates some comments and documentation.
Breaking Changes
Yes, this deletes the
k8s.ngrok.com/domainannotation support from the LoadBalancer Service. Its been deprecated for some time now in favor ofk8s.ngrok.com/url