Skip to content

Commit

Permalink
fix(installer): nil globalclient case (#1038)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Ryu committed Dec 30, 2020
1 parent dfec872 commit bbf47fb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmd/tke-installer/app/installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2434,6 +2434,9 @@ func (t *TKE) writeKubeconfig(ctx context.Context) error {
}

func (t *TKE) patchPlatformVersion(ctx context.Context) error {
if t.globalClient == nil {
return errors.New("can't get cluster client")
}
versionsByte, err := json.Marshal(spec.K8sValidVersions)
if err != nil {
return err
Expand Down

0 comments on commit bbf47fb

Please sign in to comment.