Skip to content

Commit

Permalink
Merge pull request #172 from kcl-lang/rm-useless-code
Browse files Browse the repository at this point in the history
chore: rm useless code
  • Loading branch information
zong-zhe authored Nov 28, 2024
2 parents df37c29 + a9eb5f0 commit 1547232
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions internal/controller/kclrun_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -363,10 +363,6 @@ func (r *KCLRunReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res
return ctrl.Result{}, fmt.Errorf("failed to build kube client: %w", err)
}

if err != nil {
conditions.MarkFalse(obj, meta.ReadyCondition, "RESTClientError", "%s", err)
return ctrl.Result{}, err
}
// Remove any stale corresponding Ready=False condition with Unknown.
if conditions.HasAnyReason(obj, meta.ReadyCondition, "RESTClientError") {
conditions.MarkUnknown(obj, meta.ReadyCondition, meta.ProgressingReason, "reconciliation in progress")
Expand Down

0 comments on commit 1547232

Please sign in to comment.