Skip to content

Commit

Permalink
fix(installer): allow to set version
Browse files Browse the repository at this point in the history
Signed-off-by: Tengfei Wang <[email protected]>
  • Loading branch information
davidwtf authored and tke-robot committed Jun 5, 2020
1 parent 9ba7c0a commit 5ff0be1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/tke-installer/app/installer/installer.go
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,9 @@ func (t *TKE) setClusterDefault(cluster *platformv1.Cluster, config *types.Confi
if t.Para.Config.Auth.TKEAuth != nil {
cluster.Spec.TenantID = t.Para.Config.Auth.TKEAuth.TenantID
}
cluster.Spec.Version = spec.K8sVersions[0] // use newest version
if cluster.Spec.Version == "" {
cluster.Spec.Version = spec.K8sVersions[0] // use newest version
}
if cluster.Spec.ClusterCIDR == "" {
cluster.Spec.ClusterCIDR = "10.244.0.0/16"
}
Expand Down

0 comments on commit 5ff0be1

Please sign in to comment.