-
Notifications
You must be signed in to change notification settings - Fork 338
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: implement pluginconfig clients (#638) #772
Conversation
Codecov Report
@@ Coverage Diff @@
## master #772 +/- ##
==========================================
+ Coverage 32.07% 32.28% +0.20%
==========================================
Files 65 66 +1
Lines 6943 7137 +194
==========================================
+ Hits 2227 2304 +77
- Misses 4466 4565 +99
- Partials 250 268 +18
Continue to review full report at Codecov.
|
@tao12345666333 |
pkg/apisix/plugin_test.go
Outdated
@@ -23,6 +23,7 @@ import ( | |||
"testing" | |||
|
|||
"github.com/apache/apisix-ingress-controller/pkg/metrics" | |||
|
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.
Can we sort these imports?
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.
My local golangci-lint would print these warnings below:
golangci-lint run
pkg/apisix/plugin_test.go:25: File is not `goimports`-ed with -local github.com/apache/apisix-ingress-controller (goimports)
"github.com/apache/apisix-ingress-controller/pkg/metrics"
pkg/apisix/schema_test.go:24: File is not `goimports`-ed with -local github.com/apache/apisix-ingress-controller (goimports)
"github.com/apache/apisix-ingress-controller/pkg/metrics"
Finally, I found that if I split the imports then there no warnings left.
Maybe I should ignore it in the next commits.
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 it's caused by the lexicographical orders.
pkg/apisix/pluginconfig_test.go
Outdated
"testing" | ||
|
||
"github.com/apache/apisix-ingress-controller/pkg/metrics" | ||
v1 "github.com/apache/apisix-ingress-controller/pkg/types/apisix/v1" |
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.
Ditto, we should sort these imports.
@neverCase Sorry for delay. I leave some comments, I hope you can make changes |
ok, i will change these and update right now |
@tao12345666333 |
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.
LGTM, Thanks!
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.
Mostly LGTM but some import block style problems.
@neverCase can you improve the code style? |
I had revert it |
#788 has fixed the e2e error. It's green! |
Good job! |
Please answer these questions before submitting a pull request
Why submit this pull request?
Bugfix
New feature provided
Improve performance
Backport patches
Related issues
proposal: Add CRD ApisixPluginConfig support plugin configs #638
Bugfix
Description
How to fix?
New feature or improvement
Backport patches
Why need to backport?
Source branch
Related commits and pull requests
Target branch