Commit 7d49e7bb authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #51616 from tcharding/golint-kc-secret-for-tls

Automatic merge from submit-queue (batch tested with PRs 49971, 51357, 51616, 51649, 51372) kubectl: Remove ending punctuation from error strings **What this PR does / why we need it**: `golint` emits 2 warnings of type: `error strings should not end with punctuation` Remove punctuation from end of error strings. **Release note**: ```release-note NONE ``` /sig cli /kind cleanup
parents 08ad0127 8c5653d2
......@@ -128,10 +128,10 @@ func (s SecretForTLSGeneratorV1) validate() error {
// if no key/cert is given. The only requiredment is that we either get both
// or none. See test/e2e/ingress_utils for self signed cert generation.
if len(s.Key) == 0 {
return fmt.Errorf("key must be specified.")
return fmt.Errorf("key must be specified")
}
if len(s.Cert) == 0 {
return fmt.Errorf("certificate must be specified.")
return fmt.Errorf("certificate must be specified")
}
if _, err := tls.LoadX509KeyPair(s.Cert, s.Key); err != nil {
return fmt.Errorf("failed to load key pair %v", err)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment