Skip to content

Commit

Permalink
style(autok3s): remove useless code
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 Oct 15, 2020
1 parent 78931f4 commit 3d9b8cf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pkg/providers/alibaba/alibaba.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ func (p *Alibaba) CreateK3sCluster(ssh *types.SSH) (err error) {
fmt.Printf(usageInfo, p.Name)
if p.UI {
if p.CloudControllerManager {
fmt.Printf("\nK3s UI %s URL: https://<using `kubectl get svc -A` get UI address>:8999\n", p.UI)
fmt.Printf("\nK3s UI URL: https://<using `kubectl get svc -A` get UI address>:8999\n")
} else {
fmt.Printf("\nK3s UI %s URL: https://%s:8999\n", p.UI, p.Status.MasterNodes[0].PublicIPAddress[0])
fmt.Printf("\nK3s UI URL: https://%s:8999\n", p.Status.MasterNodes[0].PublicIPAddress[0])
}
}
fmt.Println("")
Expand Down
2 changes: 1 addition & 1 deletion pkg/providers/native/native.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func (p *Native) CreateK3sCluster(ssh *types.SSH) (err error) {
if err == nil && len(p.Status.MasterNodes) > 0 {
fmt.Printf(usageInfo, p.Name)
if p.UI {
fmt.Printf("\nK3s UI %s URL: https://%s:8999\n", p.UI, p.Status.MasterNodes[0].PublicIPAddress[0])
fmt.Printf("\nK3s UI URL: https://%s:8999\n", p.Status.MasterNodes[0].PublicIPAddress[0])
}
}
}()
Expand Down

0 comments on commit 3d9b8cf

Please sign in to comment.