-
Notifications
You must be signed in to change notification settings - Fork 970
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
this is a safe evict , making descheduler more powerful #2974
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@gj199575 Please log a issue firstly and describe your requirement and by the way please use english so that all the contributor can get into the discussion. |
ok |
Signed-off-by: gj199575 <[email protected]>
@@ -161,7 +162,14 @@ func (db *DefaultBinder) Bind(kubeClient kubernetes.Interface, tasks []*scheduli | |||
var errTasks []*schedulingapi.TaskInfo | |||
for _, task := range tasks { | |||
p := task.Pod | |||
if err := kubeClient.CoreV1().Pods(p.Namespace).Bind(context.TODO(), | |||
if p.Annotations["is-fake"] == "true" { |
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'm sorry for not get the usage of is-fake
annotation, can you add more description about this PR?
if p.Annotations["is-fake"] == "true" { | ||
db.CreateQueue() | ||
p.Annotations["fake-pod"] = task.NodeName | ||
p.Annotations["scheduling.k8s.io/group-name"] = "job1-e7f18111-1cec-11ea-b688-fa163ec79500" |
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 this is a hard-code annotation with key 'group-name'?
I'm sorry that I cannot merge this PR for there are serious problems both in issue description and code. |
Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
this is a safe evict , making descheduler more powerful
descheduler pr:kubernetes-sigs/descheduler#1188