From 181c854acc32616a74e35bf335784151536135ed Mon Sep 17 00:00:00 2001 From: edibble21 <85638465+edibble21@users.noreply.github.com> Date: Mon, 25 Nov 2024 15:33:41 -0800 Subject: [PATCH] addressed feedback --- pkg/test/environment.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/test/environment.go b/pkg/test/environment.go index 0814746a1047..2d9a9d243083 100644 --- a/pkg/test/environment.go +++ b/pkg/test/environment.go @@ -117,6 +117,9 @@ func NewEnvironment(ctx context.Context, env *coretest.Environment) *Environment subnetProvider := subnet.NewDefaultProvider(ec2api, subnetCache, availableIPAdressCache, associatePublicIPAddressCache) securityGroupProvider := securitygroup.NewDefaultProvider(ec2api, securityGroupCache) versionProvider := version.NewDefaultProvider(env.KubernetesInterface, eksapi) + // Ensure we're able to hydrate the version before starting any reliant controllers. + // Version updates are hydrated asynchronously after this, in the event of a failure + // the previously resolved value will be used. lo.Must0(versionProvider.UpdateVersion(ctx)) instanceProfileProvider := instanceprofile.NewDefaultProvider(fake.DefaultRegion, iamapi, instanceProfileCache) ssmProvider := ssmp.NewDefaultProvider(ssmapi, ssmCache)