Skip to content

Commit 7fd3da6

Browse files
authored
Merge pull request #542 from stuggi/bump_weight
Change weight assigned to podAntiAffinity to 100
2 parents df36d69 + c61e750 commit 7fd3da6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/common/affinity/affinity.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func DistributePods(
4848
// https://github.com/kubernetes/api/blob/master/core/v1/well_known_labels.go#L20
4949
TopologyKey: topologyKey,
5050
},
51-
Weight: 1,
51+
Weight: 100,
5252
},
5353
},
5454
},

modules/common/affinity/affinity_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ var affinityObj = &corev1.Affinity{
4141
},
4242
TopologyKey: "ThisTopologyKey",
4343
},
44-
Weight: 1,
44+
Weight: 100,
4545
},
4646
},
4747
},

0 commit comments

Comments
 (0)