mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-06 16:06:51 +00:00
move Taint and toleration predicate to its Score plugin
This commit is contained in:
@@ -138,30 +138,27 @@ func TestPriorityMetadata(t *testing.T) {
|
||||
{
|
||||
pod: podWithTolerationsAndAffinity,
|
||||
expected: &priorityMetadata{
|
||||
podLimits: nonPodLimits,
|
||||
podTolerations: tolerations,
|
||||
affinity: podAffinity,
|
||||
podSelector: labels.NewSelector(),
|
||||
podLimits: nonPodLimits,
|
||||
affinity: podAffinity,
|
||||
podSelector: labels.NewSelector(),
|
||||
},
|
||||
name: "Produce a priorityMetadata with default requests",
|
||||
},
|
||||
{
|
||||
pod: podWithTolerationsAndRequests,
|
||||
expected: &priorityMetadata{
|
||||
podLimits: nonPodLimits,
|
||||
podTolerations: tolerations,
|
||||
affinity: nil,
|
||||
podSelector: labels.NewSelector(),
|
||||
podLimits: nonPodLimits,
|
||||
affinity: nil,
|
||||
podSelector: labels.NewSelector(),
|
||||
},
|
||||
name: "Produce a priorityMetadata with tolerations and requests",
|
||||
},
|
||||
{
|
||||
pod: podWithAffinityAndRequests,
|
||||
expected: &priorityMetadata{
|
||||
podLimits: specifiedPodLimits,
|
||||
podTolerations: nil,
|
||||
affinity: podAffinity,
|
||||
podSelector: labels.NewSelector(),
|
||||
podLimits: specifiedPodLimits,
|
||||
affinity: podAffinity,
|
||||
podSelector: labels.NewSelector(),
|
||||
},
|
||||
name: "Produce a priorityMetadata with affinity and requests",
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user