From c0ded2d9f5beb5eb02b356076166c365073a639a Mon Sep 17 00:00:00 2001 From: Justin Santa Barbara Date: Thu, 30 Aug 2018 18:50:26 -0400 Subject: [PATCH] Fix grammar in secure-port flag help The phrasing made it difficult to understand the message. --- staging/src/k8s.io/apiserver/pkg/server/options/serving.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/staging/src/k8s.io/apiserver/pkg/server/options/serving.go b/staging/src/k8s.io/apiserver/pkg/server/options/serving.go index 96bd9fb8cc7..3ecc7e02094 100644 --- a/staging/src/k8s.io/apiserver/pkg/server/options/serving.go +++ b/staging/src/k8s.io/apiserver/pkg/server/options/serving.go @@ -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." }