Skip to content

Commit 947e96f

Browse files
authored
Wait for vpccni to become active before updating it to use IRSA (eksctl-io#8152)
wait for vpccni to become active before updating it to use IRSA
1 parent c143a9c commit 947e96f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/actions/addon/tasks.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ func CreateAddonTasks(ctx context.Context, cfg *api.ClusterConfig, clusterProvid
9393
if err != nil {
9494
return err
9595
}
96+
// VPC CNI is being created in a separate task, so we need to wait for it to be active before updating to use IRSA
97+
if err := addonManager.waitForAddonToBeActive(ctx, &api.Addon{Name: api.VPCCNIAddon}, api.DefaultWaitTimeout); err != nil {
98+
return fmt.Errorf("waiting for %q to become active: %w", api.VPCCNIAddon, err)
99+
}
96100
return addonManager.Update(ctx, vpcCNIAddon, nil, clusterProvider.AWSProvider.WaitTimeout())
97101
},
98102
}

0 commit comments

Comments
 (0)