@@ -115,7 +115,7 @@ func (r *ClusterReconciler) handleDelete(ctx context.Context, cluster *v1alpha1.
115115//nolint:gocyclo
116116func (r * ClusterReconciler ) handleCreateOrUpdate (ctx context.Context , cluster * v1alpha1.Cluster ) (ctrl.Result , error ) {
117117 requeue := smartrequeue .FromContext (ctx )
118- cluster .Status .Phase = v1alpha1 .Progressing
118+ cluster .Status .Phase = v1alpha1 .PHASE_PROGRESSING
119119
120120 if controllerutil .AddFinalizer (cluster , Finalizer ) {
121121 if err := r .Update (ctx , cluster ); err != nil {
@@ -179,7 +179,7 @@ func (r *ClusterReconciler) handleCreateOrUpdate(ctx context.Context, cluster *v
179179 return requeue .Progressing ()
180180 }
181181 meta .SetStatusCondition (& cluster .Status .Conditions , metav1.Condition {
182- Type : string ( v1alpha1 . MetalLBReady ) ,
182+ Type : " MetalLBReady" ,
183183 Status : metav1 .ConditionTrue ,
184184 Reason : "AllPodsReady" ,
185185 })
@@ -188,9 +188,9 @@ func (r *ClusterReconciler) handleCreateOrUpdate(ctx context.Context, cluster *v
188188 return requeue .Error (err )
189189 }
190190
191- cluster .Status .Phase = v1alpha1 .Ready
191+ cluster .Status .Phase = v1alpha1 .CLUSTER_PHASE_READY
192192 meta .SetStatusCondition (& cluster .Status .Conditions , metav1.Condition {
193- Type : string (v1alpha1 .Ready ),
193+ Type : string (v1alpha1 .CLUSTER_PHASE_READY ),
194194 Status : metav1 .ConditionTrue ,
195195 Reason : "ClusterAndMetalLBReady" ,
196196 })
0 commit comments