mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 05:27:21 +00:00
Merge pull request #88552 from Huang-Wei/sched-e2e-flake-part1
Fix a scheduler e2e bug on PodTopologySpread scoring
This commit is contained in:
commit
b6b494b448
@ -378,7 +378,7 @@ var _ = SIGDescribe("SchedulerPriorities [Serial]", func() {
|
|||||||
PodConfig: pausePodConfig{
|
PodConfig: pausePodConfig{
|
||||||
Name: podLabel,
|
Name: podLabel,
|
||||||
Namespace: ns,
|
Namespace: ns,
|
||||||
Labels: map[string]string{podLabel: ""},
|
Labels: map[string]string{podLabel: "foo"},
|
||||||
NodeSelector: map[string]string{topologyKey: nodeNames[0]},
|
NodeSelector: map[string]string{topologyKey: nodeNames[0]},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -388,7 +388,9 @@ var _ = SIGDescribe("SchedulerPriorities [Serial]", func() {
|
|||||||
podCfg := pausePodConfig{
|
podCfg := pausePodConfig{
|
||||||
Name: "test-pod",
|
Name: "test-pod",
|
||||||
Namespace: ns,
|
Namespace: ns,
|
||||||
Labels: map[string]string{podLabel: ""},
|
// The labels shouldn't match the preceding ReplicaSet, otherwise it will
|
||||||
|
// be claimed as orphan of the ReplicaSet.
|
||||||
|
Labels: map[string]string{podLabel: "bar"},
|
||||||
Affinity: &v1.Affinity{
|
Affinity: &v1.Affinity{
|
||||||
NodeAffinity: &v1.NodeAffinity{
|
NodeAffinity: &v1.NodeAffinity{
|
||||||
RequiredDuringSchedulingIgnoredDuringExecution: &v1.NodeSelector{
|
RequiredDuringSchedulingIgnoredDuringExecution: &v1.NodeSelector{
|
||||||
|
Loading…
Reference in New Issue
Block a user