diff --git a/e2e/pkg/k8s/k8s.go b/e2e/pkg/k8s/k8s.go index 1e333fd9..27739cbb 100644 --- a/e2e/pkg/k8s/k8s.go +++ b/e2e/pkg/k8s/k8s.go @@ -55,10 +55,10 @@ func Prepare(t *testing.T, client client.Client, source string) { require.NoErrorf(t, err, "error parsing manifest", "manifest: %s", input.String()) } - for _, res := range resources { - ctx, cancel := context.WithTimeout(context.Background(), 1*time.Second) - defer cancel() + ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) + defer cancel() + for _, res := range resources { namespacedName := types.NamespacedName{Namespace: res.GetNamespace(), Name: res.GetName()} fetchedObj := res.DeepCopy() err := client.Get(ctx, namespacedName, fetchedObj)