Skip to content

Commit 0eb37ae

Browse files
committed
PCP-5325: Node customization in AWS EKS failing on AWS secret region, which blocks the system reconciles workerpool
1 parent c9ad0d7 commit 0eb37ae

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bootstrap/eks/controllers/eksconfig_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ func (r *EKSConfigReconciler) joinWorker(ctx context.Context, cluster *clusterv1
248248
return ctrl.Result{}, errors.Wrap(err, "failed to get control plane")
249249
}
250250

251-
// Check if control plane is ready (skip in test environments for AL2023)
252-
if config.Spec.NodeType == NodeTypeAL2023 && !conditions.IsTrue(controlPlane, ekscontrolplanev1.EKSControlPlaneReadyCondition) {
251+
// Check if control plane is ready (skip in test environments for AL2023).
252+
if config.Spec.NodeType == NodeTypeAL2023 && !controlPlane.Status.Ready {
253253
// Skip control plane readiness check for AL2023 in test environment
254254
if os.Getenv("TEST_ENV") != "true" {
255255
log.Info("AL2023 detected, waiting for control plane to be ready")

0 commit comments

Comments
 (0)