-
Notifications
You must be signed in to change notification settings - Fork 351
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
feat: add logic for ApisixRoute v2beta1 #576
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #576 +/- ##
==========================================
+ Coverage 35.03% 35.40% +0.37%
==========================================
Files 54 54
Lines 4556 5332 +776
==========================================
+ Hits 1596 1888 +292
- Misses 2742 3222 +480
- Partials 218 222 +4 ☔ View full report in Codecov by Sentry. |
pkg/kube/translation/util.go
Outdated
return "", 0, err | ||
} | ||
|
||
if backend.ResolveGranularity == "service" && svc.Spec.ClusterIP == "" { |
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.
This check can be put before the for loop?
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.
Yep, I moved them to the line before loop, and ditto with the other two versions.
Please answer these questions before submitting a pull request
Why submit this pull request?
Bugfix
New feature provided
Improve performance
Backport patches
Related issues
feat: Support UDP definition #116 feat: support udp route #396
Bugfix
Description
How to fix?
New feature or improvement
Backport patches
Why need to backport?
Source branch
Related commits and pull requests
Target branch