-
Notifications
You must be signed in to change notification settings - Fork 4k
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 force Daemon Sets option #5444
Conversation
11c7e53
to
908556e
Compare
908556e
to
903c619
Compare
/assign |
if pod_util.IsMirrorPod(pod) || pod_util.IsDaemonSetPod(pod) { | ||
selectedPods = append(selectedPods, allPods[id]) | ||
// Add scheduled mirror pods and scheduled DS pods if not force scheduling DS | ||
if pod_util.IsMirrorPod(pod) || (!forceDaemonSets && pod_util.IsDaemonSetPod(pod)) { |
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 will ignore all DaemonSet-like (but not really DaemonSet) pods for which IsDaemonSetPod
currently returns true. I think we need to distinguish between "real DS" and "DS-like" pods here to make this function work correctly.
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.
That is a good point. I think we can remedy this by checking which DS pods are already present on the chosen node and inserting new DS pods only for DSs that are not present. That way we will still keep all the "DS-like" pods to the template.
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.
Changed, PTAL
903c619
to
b608278
Compare
/hold Need to test this change some more |
/unhold |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: BigDarkClown, x13n 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 |
What type of PR is this?
/kind feature
What this PR does / why we need it:
This PR adds an optional feature that force-schedules all Daemon Set pods on node group templates. That means that node groups which cannot schedule all the expected daemon sets (eg. because of small nodes) will no longer be chosen during scale-up.
The change is disabled and guarded by a manifest flag, so it should not have any effect on the component yet.