Skip to content

Commit b43af81

Browse files
author
Moritz Clasmeier
committed
Pass waitCtx instead of ctx to progress functions
1 parent 7626318 commit b43af81

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

internal/deployer/deploy_via_operator.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,11 +518,11 @@ func (d *Deployer) waitForComponentReady(ctx context.Context, comp component.Com
518518
return fmt.Errorf("timeout reached")
519519
case <-ticker.C:
520520
// Track seen deployments and their states to avoid duplicate messages.
521-
deploymentsProgressed, err := d.checkDeploymentProgressInNamespace(ctx, waitCfg.namespace, seenDeployments)
521+
deploymentsProgressed, err := d.checkDeploymentProgressInNamespace(waitCtx, waitCfg.namespace, seenDeployments)
522522
if err != nil {
523523
d.logger.Warningf("failed to check for deployment progress in namespace %s: %v", waitCfg.namespace, err)
524524
}
525-
podsProgressed, err := d.checkPodProgressInNamespace(ctx, waitCfg.namespace, seenPods)
525+
podsProgressed, err := d.checkPodProgressInNamespace(waitCtx, waitCfg.namespace, seenPods)
526526
if err != nil {
527527
d.logger.Warningf("failed to check for pod progress in namespace %s: %v", waitCfg.namespace, err)
528528
}

0 commit comments

Comments
 (0)