Skip to content

Commit

Permalink
fix(installer): patch version for install global (tkestack#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed Dec 24, 2020
1 parent e08e525 commit 0fd6358
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion cmd/tke-installer/app/installer/upgrader.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,11 @@ func (t *TKE) getPlatformVersions(ctx context.Context) (tkeVersion string, k8sVa
if err != nil {
return
}
tkeVersion = clusterInfo.Data["tkeVersion"]

tkeVersion, ok := clusterInfo.Data["tkeVersion"]
if !ok {
return
}
err = json.Unmarshal([]byte(clusterInfo.Data["k8sValidVersions"]), &k8sValidVersions)
return
}

0 comments on commit 0fd6358

Please sign in to comment.