-
Notifications
You must be signed in to change notification settings - Fork 771
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
performance optimization pub #955
Conversation
8dd724b
to
4ebe3a7
Compare
Codecov Report
@@ Coverage Diff @@
## master #955 +/- ##
==========================================
- Coverage 49.99% 49.85% -0.15%
==========================================
Files 119 119
Lines 11535 11566 +31
==========================================
- Hits 5767 5766 -1
- Misses 4896 4930 +34
+ Partials 872 870 -2
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
pkg/controller/podunavailablebudget/pub_pod_event_handler_test.go
Outdated
Show resolved
Hide resolved
4ebe3a7
to
4a81908
Compare
4a81908
to
88005d1
Compare
@@ -18,7 +18,6 @@ package controllerfinder | |||
|
|||
import ( | |||
"context" |
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.
goimports: File is not goimports
-ed
(at-me in a reply with help
or ignore
)
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
@@ -18,7 +18,8 @@ package podunavailablebudget | |||
|
|||
import ( | |||
"context" | |||
"reflect" | |||
"fmt" | |||
metav1 "k8s.io/apimachinery/pkg/apis/meta/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.
goimports: File is not goimports
-ed
(at-me in a reply with help
or ignore
)
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
@@ -20,6 +20,9 @@ import ( | |||
"context" | |||
"flag" | |||
"fmt" | |||
utilclient "github.com/openkruise/kruise/pkg/util/client" |
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.
goimports: File is not goimports
-ed
(at-me in a reply with help
or ignore
)
Was this a good recommendation?
[ 🙁 Not relevant ] - [ 😕 Won't fix ] - [ 😑 Not critical, will fix ] - [ 🙂 Critical, will fix ] - [ 😊 Critical, fixing now ]
88005d1
to
24b0040
Compare
@@ -144,12 +119,30 @@ func (p *enqueueRequestForPod) updatePod(q workqueue.RateLimitingInterface, old, | |||
|
|||
} | |||
|
|||
func (p *enqueueRequestForPod) reconcilePatchPubAnnotationInPod(q workqueue.RateLimitingInterface, pod *corev1.Pod) { |
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.
reconcilePatchPubAnnotationInPod -> enqueuePatchPubAnnotationRequest
this func does not do the reconcile
24b0040
to
8e048cf
Compare
8e048cf
to
4f13962
Compare
Signed-off-by: liheng.zms <liheng.zms@alibaba-inc.com>
4f13962
to
9604082
Compare
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
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: FillZpp The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: liheng.zms <liheng.zms@alibaba-inc.com> Signed-off-by: Liu Zhenwei <zwliu@thoughtworks.com>
Signed-off-by: liheng.zms liheng.zms@alibaba-inc.com
Ⅰ. Describe what this PR does
Performance optimization for the pub GetPubForPod method: