Skip to content

Commit

Permalink
Merge pull request #528 from jonjohnsonjr/wait
Browse files Browse the repository at this point in the history
Remove use of deprecated WaitImmediate
  • Loading branch information
kaniini committed Jul 11, 2023
2 parents 45540a8 + 62cb6c8 commit c439c1d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/container/kubernetes_runner.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ func (k *k8s) StartPod(ctx context.Context, cfg *Config) error {
}
k.logger.Infof("created builder pod '%s' with UID '%s'", pod.Name, pod.UID)

//nolint:staticcheck
if err := wait.PollImmediate(10*time.Second, k.Config.StartTimeout, func() (done bool, err error) {
if err := wait.PollUntilContextTimeout(ctx, 10*time.Second, k.Config.StartTimeout, true, func(ctx context.Context) (done bool, err error) {
p, err := podclient.Get(ctx, pod.Name, metav1.GetOptions{})
if err != nil {
return false, err
Expand Down

0 comments on commit c439c1d

Please sign in to comment.