Skip to content

Commit

Permalink
fix(alibaba): fix terway variable bug
Browse files Browse the repository at this point in the history
Signed-off-by: Jason-ZW <zhenyang@rancher.com>
  • Loading branch information
rancher-sy-bot committed Aug 31, 2020
1 parent 0bbd247 commit c1b8415
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/cluster/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ func InitK3sCluster(cluster *types.Cluster) error {
}

for _, master := range cluster.MasterNodes {
if strings.Contains(masterExtraArgs, "--docker" ) {
if strings.Contains(masterExtraArgs, "--docker") {
if _, err := execute(&hosts.Host{Node: master},
fmt.Sprintf(dockerCommand, dockerMirror), false); err != nil {
return err
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/alibaba/alibaba.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func NewProvider() *Alibaba {
DiskCategory: diskCategory,
DiskSize: diskSize,
Image: imageID,
Terway: alibaba.Terway{Mode: "none", MaxPoolSize: terwayMaxPoolSize},
Terway: alibaba.Terway{Mode: terway, MaxPoolSize: terwayMaxPoolSize},
Type: instanceType,
InternetMaxBandwidthOut: internetMaxBandwidthOut,
},
Expand Down

0 comments on commit c1b8415

Please # to comment.