Merge pull request #68098 from justinsb/fix_grammar_flag_help

Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions here: https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md.

Fix grammar in secure-port flag help

The phrasing made it difficult to understand the message.

```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2018-08-31 00:34:15 -07:00 committed by GitHub
commit 95e85a5dfb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -116,7 +116,7 @@ func (s *SecureServingOptions) Validate() []error {
errors := []error{}
if s.Required && s.BindPort < 1 || s.BindPort > 65535 {
errors = append(errors, fmt.Errorf("--secure-port %v must be between 1 and 65535, inclusive. It cannot turned off with 0", s.BindPort))
errors = append(errors, fmt.Errorf("--secure-port %v must be between 1 and 65535, inclusive. It cannot be turned off with 0", s.BindPort))
} else if s.BindPort < 0 || s.BindPort > 65535 {
errors = append(errors, fmt.Errorf("--secure-port %v must be between 0 and 65535, inclusive. 0 for turning off secure port", s.BindPort))
}
@ -136,7 +136,7 @@ func (s *SecureServingOptions) AddFlags(fs *pflag.FlagSet) {
desc := "The port on which to serve HTTPS with authentication and authorization."
if s.Required {
desc += "It cannot switched off with 0."
desc += "It cannot be switched off with 0."
} else {
desc += "If 0, don't serve HTTPS at all."
}