Skip to content

Commit

Permalink
fix(installer): move patch version step location (#1039)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed Dec 31, 2020
1 parent bbf47fb commit f0a9a86
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 4 additions & 4 deletions cmd/tke-installer/app/installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,10 +213,6 @@ func (t *TKE) initSteps() {
Name: "Create global cluster",
Func: t.createGlobalCluster,
},
{
Name: "Patch platform versions in cluster info",
Func: t.patchPlatformVersion,
},
{
Name: "Write kubeconfig",
Func: t.writeKubeconfig,
Expand Down Expand Up @@ -245,6 +241,10 @@ func (t *TKE) initSteps() {
Name: "Install etcd",
Func: t.installETCD,
},
{
Name: "Patch platform versions in cluster info",
Func: t.patchPlatformVersion,
},
}...)

if t.Para.Config.Auth.TKEAuth != nil {
Expand Down
4 changes: 3 additions & 1 deletion pkg/spec/spec.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,13 @@
package spec

import (
"os"

"github.com/thoas/go-funk"
)

var (
TKEVersion = "1.5.0"
TKEVersion = os.Getenv("VERSION")
Archs = []string{"amd64", "arm64"}
Arm64 = "arm64"
Arm64Variants = []string{"v8", "unknown"}
Expand Down

0 comments on commit f0a9a86

Please sign in to comment.