Skip to content

Commit

Permalink
Wait for vpccni to become active before updating it to use IRSA (#8152)
Browse files Browse the repository at this point in the history
wait for vpccni to become active before updating it to use IRSA
  • Loading branch information
TiberiuGC authored Jan 21, 2025
1 parent c143a9c commit 947e96f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/actions/addon/tasks.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ func CreateAddonTasks(ctx context.Context, cfg *api.ClusterConfig, clusterProvid
if err != nil {
return err
}
// VPC CNI is being created in a separate task, so we need to wait for it to be active before updating to use IRSA
if err := addonManager.waitForAddonToBeActive(ctx, &api.Addon{Name: api.VPCCNIAddon}, api.DefaultWaitTimeout); err != nil {
return fmt.Errorf("waiting for %q to become active: %w", api.VPCCNIAddon, err)
}
return addonManager.Update(ctx, vpcCNIAddon, nil, clusterProvider.AWSProvider.WaitTimeout())
},
}
Expand Down

0 comments on commit 947e96f

Please sign in to comment.