Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>

fix lint

Signed-off-by: 楚岳 <wangyike.wyk@alibaba-inc.com>
  • Loading branch information
wangyikewxgm committed Jun 2, 2022
1 parent 1d42664 commit cecd8c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions references/cli/uninstall.go
Expand Up @@ -211,7 +211,7 @@ func forceDisableAddon(ctx context.Context, kubeClient client.Client, config *re
}
timeConsumed = time.Now()
for {
if time.Now().After(timeConsumed.Add(2 * time.Minute)) {
if time.Now().After(timeConsumed.Add(5 * time.Minute)) {
return errors.New("timeout disable fluxcd addon, please disable the addon manually")
}
addons, err := checkInstallAddon(kubeClient)
Expand All @@ -221,8 +221,8 @@ func forceDisableAddon(ctx context.Context, kubeClient client.Client, config *re
if len(addons) == 0 {
break
}
fmt.Println("Waiting delete the fluxcd addon......")
time.Sleep(5 * time.Second)
fmt.Printf("Waiting delete the fluxcd addon, timeout left %s \r\n", 5*time.Minute-time.Since(timeConsumed))
time.Sleep(2 * time.Second)
}
}
return nil
Expand Down

0 comments on commit cecd8c2

Please sign in to comment.