Skip to content

Commit

Permalink
Fix the version check when install ks with kubekey (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinuxSuRen committed Oct 21, 2021
1 parent 3f8ecfc commit 88e11d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ go 1.16
require (
github.com/AlecAivazis/survey/v2 v2.3.1
github.com/Masterminds/goutils v1.1.1 // indirect
github.com/Masterminds/semver v1.5.0 // indirect
github.com/Masterminds/semver v1.5.0
github.com/Masterminds/sprig v2.22.0+incompatible
github.com/Pallinder/go-randomdata v1.2.0
github.com/gdamore/tcell/v2 v2.4.1-0.20210905002822-f057f0a857a1
Expand Down
2 changes: 1 addition & 1 deletion kubectl-plugin/common/exec.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ func ExecCommand(name string, arg ...string) (err error) {
//ExecCommandGetOutput run command and get output
func ExecCommandGetOutput(name string, arg ...string) (string, error) {
command := exec.Command(name, arg...)
output, err :=command.CombinedOutput()
output, err := command.CombinedOutput()
if err != nil {
return "", err
}
Expand Down
2 changes: 1 addition & 1 deletion kubectl-plugin/install/kk.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ func (o *kkOption) versionCheck() (err error) {
} else {
o.version = ver
}
} else if o.version != types.KsVersion {
} else if !isNotReleaseVersion(o.version) && o.version != types.KsVersion {
switch o.version {
case types.KsVersion, "v3.0.0":
default:
Expand Down

0 comments on commit 88e11d9

Please sign in to comment.