Skip to content

Commit

Permalink
reword 'waiting X for admin console' message (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
laverya authored Nov 2, 2023
1 parent 3a3c6e6 commit 88f8fad
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/addons/adminconsole/adminconsole.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,7 @@ func (a *AdminConsole) GenerateHelmConfig() ([]v1beta1.Chart, []v1beta1.Reposito
func (a *AdminConsole) Outro(ctx context.Context, cli client.Client) error {
loading := pb.Start()
backoff := wait.Backoff{Steps: 60, Duration: 5 * time.Second, Factor: 1.0, Jitter: 0.1}
duration := kubeutils.BackOffToDuration(backoff)
loading.Infof("Waiting %v for Admin Console to deploy: 0/3 ready", duration)
loading.Infof("Waiting for Admin Console to deploy: 0/3 ready")
var lasterr error
if err := wait.ExponentialBackoff(backoff, func() (bool, error) {
var count int
Expand All @@ -221,7 +220,7 @@ func (a *AdminConsole) Outro(ctx context.Context, cli client.Client) error {
count++
}
}
loading.Infof("Waiting %v for Admin Console to deploy: %d/3 ready", duration, count)
loading.Infof("Waiting for Admin Console to deploy: %d/3 ready", count)
return count == 3, nil
}); err != nil {
if lasterr == nil {
Expand Down

0 comments on commit 88f8fad

Please sign in to comment.