-
Notifications
You must be signed in to change notification settings - Fork 458
OCPBUGS-58180: Add control-plane label for master nodes on legacy clusters #5147
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
Conversation
|
/approve |
| if _, hasWorkerLabel := newLabels[WorkerLabel]; !hasWorkerLabel { | ||
| newLabels[WorkerLabel] = "" | ||
| } | ||
| // Legacy clusters do not have the node-role.kubernetes.io/control-plane |
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.
the makeMasterNodeSchedulable seems to be called for clusters where the control plane nodes acts as workers. So for most of the clusters, I don't think it would even hit this logic?
Maybe we can lift this up to reconcileMaster() instead and have it check every time it re-checks the control plane nodes?
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.
Very good point. Though, reconcileMaster() does not do a Node().Update() call. The callers of reconcileMaster() do not seem to update the Node either.
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 an idea on a patch. I'll update this PR.
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 updated the PR to add the logic in reconcileMaster() and perform the update.
yuqi-zhang
left a comment
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
Would you like to attach a jira to this
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: rphillips, sdodson, yuqi-zhang 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 |
|
@rphillips: This pull request references Jira Issue OCPBUGS-58180, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/jira refresh |
|
@rphillips: This pull request references Jira Issue OCPBUGS-58180, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
Requesting review from QA contact: In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
a08d5ec
into
openshift:main
|
@rphillips: Jira Issue OCPBUGS-58180: All pull requests linked via external trackers have merged: Jira Issue OCPBUGS-58180 has been moved to the MODIFIED state. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
@rphillips: The following tests failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
[ART PR BUILD NOTIFIER] Distgit: ose-machine-config-operator |
|
@rphillips: Jira Issue OCPBUGS-58180 is in an unrecognized state (ON_QA) and will not be moved to the MODIFIED state. In response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
/cherry-pick release-4.19 |
|
@sdodson: new pull request created: #5168 In response to this:
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. |
Some master nodes from very old clusters do not have the node-role.kubernetes.io/control-plane label. This PR changes the logic of
reconcileMaster. It seems like a great spot to add the control-plane label if it was not set.