mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 11:18:16 +00:00
Merge pull request #36734 from YuPengZTE/devPunctuation
Automatic merge from submit-queue error strings should not end with punctuation **What this PR does / why we need it**: Delete the end punctuation of error strings **Which issue this PR fixes** *(optional, in `fixes #<issue number>(, #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes # **Special notes for your reviewer**: https://github.com/golang/go/wiki/CodeReviewComments#error-strings **Release note**: ```release-note ``` Signed-off-by: yupeng <yu.peng36@zte.com.cn>
This commit is contained in:
@@ -519,13 +519,13 @@ type kops struct {
|
||||
|
||||
func NewKops() (*kops, error) {
|
||||
if *kopsPath == "" {
|
||||
return nil, fmt.Errorf("--kops must be set to a valid binary path for kops deployment.")
|
||||
return nil, fmt.Errorf("--kops must be set to a valid binary path for kops deployment")
|
||||
}
|
||||
if *kopsCluster == "" {
|
||||
return nil, fmt.Errorf("--kops-cluster must be set to a valid cluster name for kops deployment.")
|
||||
return nil, fmt.Errorf("--kops-cluster must be set to a valid cluster name for kops deployment")
|
||||
}
|
||||
if *kopsState == "" {
|
||||
return nil, fmt.Errorf("--kops-state must be set to a valid S3 path for kops deployment.")
|
||||
return nil, fmt.Errorf("--kops-state must be set to a valid S3 path for kops deployment")
|
||||
}
|
||||
sshKey := *kopsSSHKey
|
||||
if sshKey == "" {
|
||||
|
||||
Reference in New Issue
Block a user