-
Notifications
You must be signed in to change notification settings - Fork 216
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
initialize nodeSelectorFunc when --manage-nodes-with-label-selector is set #347
Conversation
|
✅ Deploy Preview for k8s-kwok canceled.
|
Welcome @lzlaa! |
Hi @lzlaa. 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/test-infra repository. |
it's okay, squash commits. and can we have a test cover this change? |
/ok-to-test |
7db7c91
to
7d179bc
Compare
Thanks for your work, I add an unit test to cover this change. |
I have resolved your comment. @wzshiming |
/approve Thank you for your contribution |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lzlaa, wzshiming 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 |
…upstream-release-0.1 Automated cherry pick of #347: initialize nodeSelectorFunc when
What type of PR is this?
/kind bug
What this PR does / why we need it:
The reason why #346 happened is that kwok doesn't initialize
nodeSelectorFunc
when--manage-nodes-with-label-selector
is set, this PR will initializenodeSelectorFunc
to fix it.Which issue(s) this PR fixes:
Fixes #346
Special notes for your reviewer:
Kwok doesn't initializes
nodeSelectorFunc
when--manage-nodes-with-label-selector
is set, so node_controller.go#L170 causes nil point panic.Does this PR introduce a user-facing change?
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: