@@ -420,7 +420,7 @@ func ClusterRoleBindingsTest(details VersionDetails, opts TestOptions) func(t *t
420
420
list , err := k8sClient .
421
421
RbacV1 ().
422
422
ClusterRoleBindings ().
423
- List (ctx , v1 .ListOptions {
423
+ List (ctx , metav1 .ListOptions {
424
424
Limit : 100 ,
425
425
Continue : listContinue ,
426
426
})
@@ -457,7 +457,7 @@ func ClusterRolesTest(details VersionDetails, opts TestOptions) func(t *testing.
457
457
458
458
var listContinue string
459
459
for {
460
- list , err := k8sClient .RbacV1 ().ClusterRoles ().List (ctx , v1 .ListOptions {
460
+ list , err := k8sClient .RbacV1 ().ClusterRoles ().List (ctx , metav1 .ListOptions {
461
461
Limit : 100 ,
462
462
Continue : listContinue ,
463
463
})
@@ -500,7 +500,7 @@ func CRDTest(details VersionDetails, opts TestOptions) func(t *testing.T) {
500
500
list , err := apiextensionsClientSet .
501
501
ApiextensionsV1 ().
502
502
CustomResourceDefinitions ().
503
- List (ctx , v1 .ListOptions {
503
+ List (ctx , metav1 .ListOptions {
504
504
Limit : 100 ,
505
505
Continue : listContinue ,
506
506
})
@@ -739,7 +739,7 @@ func SidecarInjects() func(t *testing.T) {
739
739
})
740
740
741
741
err = wait .PollImmediateUntilWithContext (ctx , time .Second , func (ctx context.Context ) (bool , error ) {
742
- deploy , err : = client .AppsV1 ().Deployments (DaprTestNamespace ).Get (ctx , deploy .Name , metav1.GetOptions {})
742
+ deploy , err = client .AppsV1 ().Deployments (DaprTestNamespace ).Get (ctx , deploy .Name , metav1.GetOptions {})
743
743
if err != nil {
744
744
return false , err
745
745
}
@@ -787,6 +787,7 @@ func SidecarInjects() func(t *testing.T) {
787
787
788
788
return false , errors .New ("failed to find injected daprd container" )
789
789
})
790
+ require .NoError (t , err )
790
791
}
791
792
}
792
793
0 commit comments