From d2107054f586e12323f5846dd067ec4232f71a38 Mon Sep 17 00:00:00 2001 From: Andreas Sommer Date: Thu, 8 Aug 2024 09:34:06 +0200 Subject: [PATCH] Mark `S3BucketCreated` condition ready after successful reconciliation --- controllers/awscluster_controller.go | 1 + 1 file changed, 1 insertion(+) diff --git a/controllers/awscluster_controller.go b/controllers/awscluster_controller.go index 13db38000a..aeac110728 100644 --- a/controllers/awscluster_controller.go +++ b/controllers/awscluster_controller.go @@ -358,6 +358,7 @@ func (r *AWSClusterReconciler) reconcileNormal(clusterScope *scope.ClusterScope) conditions.MarkFalse(awsCluster, infrav1.S3BucketReadyCondition, infrav1.S3BucketFailedReason, clusterv1.ConditionSeverityError, err.Error()) return reconcile.Result{}, errors.Wrapf(err, "failed to reconcile S3 Bucket for AWSCluster %s/%s", awsCluster.Namespace, awsCluster.Name) } + conditions.MarkTrue(awsCluster, infrav1.S3BucketReadyCondition) for _, subnet := range clusterScope.Subnets().FilterPrivate() { found := false