mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 07:27:21 +00:00
Changes for removing deadcode in taint_tolerations
Code cleanup with some modifications and a test-case in taints and tolerations Code cleanup with some modifications and a test-case in taints and tolerations Removed unnecessary code from my last commit Code cleanup with some modifications and a test-case in taints and tolerations SUggested changes for taints_tolerations Changes for removing deadcode in taint_tolerations small changes again small changes again Small changes for clear documentation.
This commit is contained in:
@@ -34,13 +34,10 @@ func PriorityMetadata(pod *v1.Pod, nodeNameToInfo map[string]*schedulercache.Nod
|
||||
if pod == nil {
|
||||
return nil
|
||||
}
|
||||
tolerations, err := getTolerationListFromPod(pod)
|
||||
if err != nil {
|
||||
return nil
|
||||
}
|
||||
tolerationsPreferNoSchedule := getAllTolerationPreferNoSchedule(pod.Spec.Tolerations)
|
||||
return &priorityMetadata{
|
||||
nonZeroRequest: getNonZeroRequests(pod),
|
||||
podTolerations: tolerations,
|
||||
podTolerations: tolerationsPreferNoSchedule,
|
||||
affinity: schedulercache.ReconcileAffinity(pod),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user