@@ -22,6 +22,7 @@ package managed
22
22
import (
23
23
"context"
24
24
"fmt"
25
+ "time"
25
26
26
27
"github.com/onsi/ginkgo/v2"
27
28
. "github.com/onsi/gomega"
@@ -76,15 +77,22 @@ var _ = ginkgo.Describe("[managed] [general] EKS cluster tests", func() {
76
77
})
77
78
78
79
ginkgo .By ("should set environment variables on the aws-node daemonset" )
79
- CheckAwsNodeEnvVarsSet (ctx , func () UpdateAwsNodeVersionSpecInput {
80
- return UpdateAwsNodeVersionSpecInput {
81
- E2EConfig : e2eCtx .E2EConfig ,
82
- BootstrapClusterProxy : e2eCtx .Environment .BootstrapClusterProxy ,
83
- AWSSession : e2eCtx .BootstrapUserAWSSession ,
84
- Namespace : namespace ,
85
- ClusterName : clusterName ,
86
- }
87
- })
80
+ Eventually (func () error {
81
+ defer ginkgo .GinkgoRecover ()
82
+ CheckAwsNodeEnvVarsSet (ctx , func () UpdateAwsNodeVersionSpecInput {
83
+ return UpdateAwsNodeVersionSpecInput {
84
+ E2EConfig : e2eCtx .E2EConfig ,
85
+ BootstrapClusterProxy : e2eCtx .Environment .BootstrapClusterProxy ,
86
+ AWSSession : e2eCtx .BootstrapUserAWSSession ,
87
+ Namespace : namespace ,
88
+ ClusterName : clusterName ,
89
+ }
90
+ })
91
+ return nil
92
+ }).WithTimeout (5 * time .Minute ).WithPolling (10 * time .Second ).WithContext (ctx ).Should (
93
+ Succeed (),
94
+ "Failed to verify AWS Node environment variables after 5 minutes of retries" ,
95
+ )
88
96
89
97
ginkgo .By ("should have the VPC CNI installed" )
90
98
CheckAddonExistsSpec (ctx , func () CheckAddonExistsSpecInput {
0 commit comments