-
Notifications
You must be signed in to change notification settings - Fork 52
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 component config #609
feat: add component config #609
Conversation
Welcome @rainfd! |
Hi @rainfd. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
✅ Deploy Preview for kubernetes-sigs-jobset canceled.
|
/ok-to-test |
Thanks for working on this @rainfd, I will review this soon |
FYI I am OOO for the next week or so but can review when I get back. |
c2555ca
to
7797b24
Compare
Looks good, I would prefer to include a larger change like this in 0.7 release, rather than as a last minute addition to 0.6, so unless there's any objections that's what we'll do |
/hold |
Signed-off-by: rainfd <rainfd@live.cn>
7797b24
to
ea1ac2e
Compare
/lgtm Will leave approval for @ahg-g. |
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.
Thanks a lot for this!
main.go
Outdated
|
||
kubeConfig := ctrl.GetConfigOrDie() | ||
if configFile == "" { | ||
options = ctrl.Options{ |
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.
Why don't we get the defaults as defined in SetDefaults_Configuration and then override the couple of parameters that have corresponding cmd flags if set? This will unify all defaulting in one place.
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.
config.Load
handles the case where the configFile is not set, so we just need to invoke it instead of defining defaults again here.
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.
Modify as you said, now check each flag individually and set the value.
Signed-off-by: rainfd <rainfd@live.cn>
Thanks, looks good, we need to fix the tests though. |
/test pull-jobset-test-unit-main |
/label tide/merge-method-squash |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ahg-g, rainfd 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 |
/hold cancel I think this is ready to go now. |
Fix: #55
The basic configuration follows kueue.