Skip to content

Commit 8894808

Browse files
feat: observe context while waiting for kots deployment (#379)
if the context has been cancelled return immediately with the proper error.
1 parent 4758434 commit 8894808

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/addons/adminconsole/adminconsole.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ func (a *AdminConsole) Outro(ctx context.Context, cli client.Client) error {
244244
loading.Infof("Waiting for Admin Console to deploy: 0/3 ready")
245245

246246
var lasterr error
247-
if err := wait.ExponentialBackoff(backoff, func() (bool, error) {
247+
if err := wait.ExponentialBackoffWithContext(ctx, backoff, func(ctx context.Context) (bool, error) {
248248
var count int
249249
ready, err := kubeutils.IsDeploymentReady(ctx, cli, a.namespace, "kotsadm")
250250
if err != nil {

0 commit comments

Comments
 (0)