@@ -347,7 +347,7 @@ func existsInDiscoveryV1(crd *apiextensionsv1.CustomResourceDefinition, apiExten
347
347
func waitForCRDReadyWatchUnsafe (crd * apiextensionsv1.CustomResourceDefinition , apiExtensionsClient clientset.Interface ) (* apiextensionsv1.CustomResourceDefinition , error ) {
348
348
// wait until all resources appears in discovery
349
349
for _ , version := range servedV1Versions (crd ) {
350
- err := wait .PollUntilContextTimeout (context .Background (), 500 * time .Second , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
350
+ err := wait .PollUntilContextTimeout (context .Background (), 500 * time .Millisecond , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
351
351
return existsInDiscoveryV1 (crd , apiExtensionsClient , version )
352
352
})
353
353
if err != nil {
@@ -396,7 +396,7 @@ func CreateNewV1CustomResourceDefinitionWatchUnsafe(v1CRD *apiextensionsv1.Custo
396
396
397
397
// wait until all resources appears in discovery
398
398
for _ , version := range servedV1Versions (v1CRD ) {
399
- err := wait .PollUntilContextTimeout (context .Background (), 500 * time .Second , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
399
+ err := wait .PollUntilContextTimeout (context .Background (), 500 * time .Millisecond , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
400
400
return existsInDiscoveryV1 (v1CRD , apiExtensionsClient , version )
401
401
})
402
402
if err != nil {
@@ -424,7 +424,7 @@ func CreateNewV1CustomResourceDefinition(v1CRD *apiextensionsv1.CustomResourceDe
424
424
// For this test, we'll actually cycle, "list/watch/create/delete" until we get an RV from list that observes the create and not an error.
425
425
// This way all the tests that are checking for watches don't have to worry about RV too old problems because crazy things *could* happen
426
426
// before like the created RV could be too old to watch.
427
- err = wait .PollUntilContextTimeout (context .Background (), 500 * time .Second , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
427
+ err = wait .PollUntilContextTimeout (context .Background (), 500 * time .Millisecond , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
428
428
return isWatchCachePrimed (v1CRD , dynamicClientSet )
429
429
})
430
430
if err != nil {
@@ -518,7 +518,7 @@ func DeleteV1CustomResourceDefinition(crd *apiextensionsv1.CustomResourceDefinit
518
518
return err
519
519
}
520
520
for _ , version := range servedV1Versions (crd ) {
521
- err := wait .PollUntilContextTimeout (context .Background (), 500 * time .Second , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
521
+ err := wait .PollUntilContextTimeout (context .Background (), 500 * time .Millisecond , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
522
522
exists , err := existsInDiscoveryV1 (crd , apiExtensionsClient , version )
523
523
return ! exists , err
524
524
})
@@ -540,7 +540,7 @@ func DeleteV1CustomResourceDefinitions(deleteListOpts metav1.ListOptions, apiExt
540
540
}
541
541
for _ , crd := range list .Items {
542
542
for _ , version := range servedV1Versions (& crd ) {
543
- err := wait .PollUntilContextTimeout (context .Background (), 500 * time .Second , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
543
+ err := wait .PollUntilContextTimeout (context .Background (), 500 * time .Millisecond , 30 * time .Second , true , func (ctx context.Context ) (bool , error ) {
544
544
exists , err := existsInDiscoveryV1 (& crd , apiExtensionsClient , version )
545
545
return ! exists , err
546
546
})
0 commit comments