Skip to content

Commit

Permalink
replace deprecated wait.Poll with wait.PollUntilContextTimeout
Browse files Browse the repository at this point in the history
  • Loading branch information
vardhaman22 authored and MbolotSuse committed Jan 26, 2024
1 parent 0811abc commit bfee990
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion store/crd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ func (f *Factory) waitCRD(ctx context.Context, apiClient clientset.Interface, cr
defer logrus.Infof("Done waiting for CRD %s to become available", crdName)

first := true
return wait.Poll(500*time.Millisecond, 60*time.Second, func() (bool, error) {
return wait.PollUntilContextTimeout(ctx, 500*time.Millisecond, 60*time.Second, false, func(ctx context.Context) (bool, error) {
if !first {
logrus.Infof("Waiting for CRD %s to become available", crdName)
}
Expand Down

0 comments on commit bfee990

Please sign in to comment.