Skip to content

Commit 595516a

Browse files
authored
Merge pull request kubernetes#130468 from jingyuanliang/PodAntiAffinity
fix: comment on preferred PodAntiAffinity
2 parents 08f3272 + 4120ed1 commit 595516a

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

api/openapi-spec/swagger.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/openapi-spec/v3/api__v1_openapi.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/openapi-spec/v3/apis__apps__v1_openapi.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

api/openapi-spec/v3/apis__batch__v1_openapi.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pkg/apis/core/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3296,8 +3296,8 @@ type PodAntiAffinity struct {
32963296
// most preferred is the one with the greatest sum of weights, i.e.
32973297
// for each node that meets all of the scheduling requirements (resource
32983298
// request, requiredDuringScheduling anti-affinity expressions, etc.),
3299-
// compute a sum by iterating through the elements of this field and adding
3300-
// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
3299+
// compute a sum by iterating through the elements of this field and subtracting
3300+
// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
33013301
// node(s) with the highest sum are the most preferred.
33023302
// +optional
33033303
PreferredDuringSchedulingIgnoredDuringExecution []WeightedPodAffinityTerm

pkg/generated/openapi/zz_generated.openapi.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/core/v1/generated.proto

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

staging/src/k8s.io/api/core/v1/types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3678,8 +3678,8 @@ type PodAntiAffinity struct {
36783678
// most preferred is the one with the greatest sum of weights, i.e.
36793679
// for each node that meets all of the scheduling requirements (resource
36803680
// request, requiredDuringScheduling anti-affinity expressions, etc.),
3681-
// compute a sum by iterating through the elements of this field and adding
3682-
// "weight" to the sum if the node has pods which matches the corresponding podAffinityTerm; the
3681+
// compute a sum by iterating through the elements of this field and subtracting
3682+
// "weight" from the sum if the node has pods which matches the corresponding podAffinityTerm; the
36833683
// node(s) with the highest sum are the most preferred.
36843684
// +optional
36853685
// +listType=atomic

staging/src/k8s.io/api/core/v1/types_swagger_doc_generated.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)