cleanup: fix some log and error capitalizations

Part of https://github.com/kubernetes/kubernetes/issues/15863
This commit is contained in:
David Xia
2019-07-18 13:22:52 -04:00
parent 2e6eea5517
commit fabfd950b1
40 changed files with 76 additions and 76 deletions

View File

@@ -1774,7 +1774,7 @@ func assertMonotonicInvariants(set *apps.StatefulSet, spc *fakeStatefulPodContro
sort.Sort(ascendingOrdinal(pods))
for ord := 0; ord < len(pods); ord++ {
if ord > 0 && isRunningAndReady(pods[ord]) && !isRunningAndReady(pods[ord-1]) {
return fmt.Errorf("Successor %s is Running and Ready while %s is not", pods[ord].Name, pods[ord-1].Name)
return fmt.Errorf("successor %s is Running and Ready while %s is not", pods[ord].Name, pods[ord-1].Name)
}
if getOrdinal(pods[ord]) != ord {