Copy edits to remove doubled words
This commit is contained in:
@@ -177,7 +177,7 @@ need to add cases to `pkg/api/<version>/defaults.go`. Of course, since you
|
||||
have added code, you have to add a test: `pkg/api/<version>/defaults_test.go`.
|
||||
|
||||
Do use pointers to scalars when you need to distinguish between an unset value
|
||||
and an an automatic zero value. For example,
|
||||
and an automatic zero value. For example,
|
||||
`PodSpec.TerminationGracePeriodSeconds` is defined as `*int64` the go type
|
||||
definition. A zero value means 0 seconds, and a nil value asks the system to
|
||||
pick a default.
|
||||
|
@@ -16,7 +16,7 @@ The details of the above predicates can be found in [plugin/pkg/scheduler/algori
|
||||
|
||||
## Ranking the nodes
|
||||
|
||||
The filtered nodes are considered suitable to host the Pod, and it is often that there are more than one nodes remaining. Kubernetes prioritizes the remaining nodes to to find the "best" one for the Pod. The prioritization is performed by a set of priority functions. For each remaining node, a priority function gives a score which scales from 0-10 with 10 representing for "most preferred" and 0 for "least preferred". Each priority function is weighted by a positive number and the final score of each node is calculated by adding up all the weighted scores. For example, suppose there are two priority functions, `priorityFunc1` and `priorityFunc2` with weighting factors `weight1` and `weight2` respectively, the final score of some NodeA is:
|
||||
The filtered nodes are considered suitable to host the Pod, and it is often that there are more than one nodes remaining. Kubernetes prioritizes the remaining nodes to find the "best" one for the Pod. The prioritization is performed by a set of priority functions. For each remaining node, a priority function gives a score which scales from 0-10 with 10 representing for "most preferred" and 0 for "least preferred". Each priority function is weighted by a positive number and the final score of each node is calculated by adding up all the weighted scores. For example, suppose there are two priority functions, `priorityFunc1` and `priorityFunc2` with weighting factors `weight1` and `weight2` respectively, the final score of some NodeA is:
|
||||
|
||||
finalScoreNodeA = (weight1 * priorityFunc1) + (weight2 * priorityFunc2)
|
||||
|
||||
|
@@ -62,7 +62,7 @@ These guidelines say *what* to do. See the Rationale section for *why*.
|
||||
refactoring and feature additions that affect code for their IaaS.
|
||||
|
||||
## Rationale
|
||||
- We want want people to create Kubernetes clusters with whatever IaaS, Node OS,
|
||||
- We want people to create Kubernetes clusters with whatever IaaS, Node OS,
|
||||
configuration management tools, and so on, which they are familiar with. The
|
||||
guidelines for **versioned distros** are designed for flexibility.
|
||||
- We want developers to be able to work without understanding all the permutations of
|
||||
@@ -81,7 +81,7 @@ These guidelines say *what* to do. See the Rationale section for *why*.
|
||||
gate commits on passing CI for all distros, and since end-to-end tests are typically somewhat
|
||||
flaky, it would be highly likely for there to be false positives and CI backlogs with many CI pipelines.
|
||||
- We do not require versioned distros to do **CI** for several reasons. It is a steep
|
||||
learning curve to understand our our automated testing scripts. And it is considerable effort
|
||||
learning curve to understand our automated testing scripts. And it is considerable effort
|
||||
to fully automate setup and teardown of a cluster, which is needed for CI. And, not everyone
|
||||
has the time and money to run CI. We do not want to
|
||||
discourage people from writing and sharing guides because of this.
|
||||
|
Reference in New Issue
Block a user