You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(e2e): use targeted patch for EKS upgrade policy test
The upgrade policy e2e test flakes because it re-applies the entire
cluster template to change the upgradePolicy field. The CAPI framework's
CreateOrUpdate performs a full object Update, which wipes ownerReferences,
finalizers, and status from the existing AWSManagedControlPlane. This
creates a race where the controller may never reconcile within the
5-minute timeout.
Replace the second ManagedClusterSpec() call with a targeted patch using
the CAPI patch helper, matching the pattern used by
UpgradeControlPlaneVersionSpec(). The Get and Patch calls are wrapped in
Eventually blocks for resilience against transient API errors.
Signed-off-by: Damiano Donati <damiano.donati@gmail.com>
0 commit comments