File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
staging/src/k8s.io/api/core/v1 Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3213,8 +3213,8 @@ type PodAntiAffinity struct {
3213
3213
// most preferred is the one with the greatest sum of weights, i.e.
3214
3214
// for each node that meets all of the scheduling requirements (resource
3215
3215
// request, requiredDuringScheduling anti-affinity expressions, etc.),
3216
- // compute a sum by iterating through the elements of this field and adding
3217
- // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
3216
+ // compute a sum by iterating through the elements of this field and subtracting
3217
+ // "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
3218
3218
// node(s) with the highest sum are the most preferred.
3219
3219
// +optional
3220
3220
PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm
Original file line number Diff line number Diff line change @@ -3597,8 +3597,8 @@ type PodAntiAffinity struct {
3597
3597
// most preferred is the one with the greatest sum of weights, i.e.
3598
3598
// for each node that meets all of the scheduling requirements (resource
3599
3599
// request, requiredDuringScheduling anti-affinity expressions, etc.),
3600
- // compute a sum by iterating through the elements of this field and adding
3601
- // "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
3600
+ // compute a sum by iterating through the elements of this field and subtracting
3601
+ // "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
3602
3602
// node(s) with the highest sum are the most preferred.
3603
3603
// +optional
3604
3604
// +listType=atomic
You can’t perform that action at this time.
0 commit comments