-
Notifications
You must be signed in to change notification settings - Fork 276
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
[multikueue] Add garbage collector. #1643
Conversation
Skipping CI for Draft Pull Request. |
✅ Deploy Preview for kubernetes-sigs-kueue canceled.
|
/test all |
138cd50
to
c42fd3f
Compare
/hold |
/unhold |
LGTM label has been added. Git tree hash: 254effaa8d7d6cc18541fa549154eb106d19e808
|
BTW, I don't think this warrants a separate release note, because this is a non-released feature yet. I think one generic release note saying "Support for MultiKueue at Alpha level" (from one PR) would be enough for users, but this is a nit. |
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 have not yet reviewed integration tests.
} | ||
} | ||
} | ||
wlLog.V(5).Info("MultiKueueGC deleting remote workload") |
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 can be inside an "else", as deleting the owner would cascade the deletion of the workload without an additional API call.
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 prefer to keep it as is, I find it easier to follow.
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alculquicondor, trasc 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 |
/lgtm |
LGTM label has been added. Git tree hash: 6121d5ba125ce1f6e953d6aaf37b35fe10980ea2
|
/hold cancel |
/kind api-change |
/release-note-edit
|
* [multikueue] Add garbage collector. * Fix after rebase * Review Remarks * Extend API description. * Make Origin a global config. * Review Remarks * Use GCInterval in config * Review remarks * Rename gc timeout default const * Review Remarks and UT scenario cleanup. * [config] Make multikueue Origin pointer * Review remarks
What type of PR is this?
/kind feature
What this PR does / why we need it:
Add MultiKueue garbage collection.
A component that periodically, based on
kueueManagerConfig.MultiKueue.GCTimeout
, lists the remote objects created on the remoteMultiKueueClusters
, having the labelkueue.x-k8s.io/multikueue-origin
set toconfig.multiKueue,origin
, and delete those who no longer have a local counterpart.Which issue(s) this PR fixes:
Relates to #693
Special notes for your reviewer:
Does this PR introduce a user-facing change?