Skip to content

Commit

Permalink
Merge pull request #457 from vardhaman22/k8s-1.27.4
Browse files Browse the repository at this point in the history
replace deprecated wait.Poll with wait.PollUntilContextTimeout
  • Loading branch information
kinarashah authored Aug 31, 2023
2 parents 5bc9941 + 32b73ab commit 5de27f6
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 5de27f6

Please # to comment.