Skip to content
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

Add predicate func for pod controller and node controller #718

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

zhengxiexie
Copy link
Contributor

@zhengxiexie zhengxiexie commented Aug 23, 2024

Update node predicate func, filter all the conditions, capacity and allocatable compare. Add pod predicate func, remove host network check in the beginning of reconcile.

yanjunz97
yanjunz97 previously approved these changes Sep 26, 2024
Copy link
Contributor

@yanjunz97 yanjunz97 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@timdengyun
Copy link
Contributor

remove host network check in the beginning of reconcile. @zhengxiexie
could you explain a bit why we need to do this?

@zhengxiexie
Copy link
Contributor Author

remove host network check in the beginning of reconcile. @zhengxiexie could you explain a bit why we need to do this?

Yes, put it in predicate to avoid continuesly printing pod is not scheduled on node yet, skipping

Update node predicate func, filter all the conditions compare.
Add pod predicate func, remove host network check in the beginning of reconcile.

Signed-off-by: Xie Zheng <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 24 lines in your changes missing coverage. Please review.

Project coverage is 48.99%. Comparing base (7223696) to head (f7caed5).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
pkg/controllers/pod/pod_controller.go 0.00% 20 Missing ⚠️
pkg/controllers/node/node_controller.go 0.00% 4 Missing ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #718      +/-   ##
==========================================
+ Coverage   48.61%   48.99%   +0.37%     
==========================================
  Files          94       94              
  Lines       12047    12210     +163     
==========================================
+ Hits         5857     5982     +125     
- Misses       5705     5725      +20     
- Partials      485      503      +18     
Flag Coverage Δ
unit-tests 48.99% <0.00%> (+0.37%) ⬆️
Files with missing lines Coverage Δ
pkg/controllers/node/node_controller.go 0.00% <0.00%> (ø)
pkg/controllers/pod/pod_controller.go 0.00% <0.00%> (ø)

... and 12 files with indirect coverage changes

Copy link
Contributor

@timdengyun timdengyun left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants