@@ -22,6 +22,7 @@ package managed
2222import (
2323 "context"
2424 "fmt"
25+ "time"
2526
2627 "github.com/onsi/ginkgo/v2"
2728 . "github.com/onsi/gomega"
@@ -76,15 +77,22 @@ var _ = ginkgo.Describe("[managed] [general] EKS cluster tests", func() {
7677 })
7778
7879 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+ )
8896
8997 ginkgo .By ("should have the VPC CNI installed" )
9098 CheckAddonExistsSpec (ctx , func () CheckAddonExistsSpecInput {
0 commit comments