Skip to content

Commit

Permalink
fix: remove code
Browse files Browse the repository at this point in the history
  • Loading branch information
ishaansehgal99 committed Mar 29, 2024
1 parent 56609e9 commit 6a47da0
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions pkg/controllers/workspace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -460,21 +460,9 @@ func (c *WorkspaceReconciler) applyTuning(ctx context.Context, wObj *kaitov1alph
}()

if err != nil {
if updateErr := c.updateStatusConditionIfNotMatch(ctx, wObj, kaitov1alpha1.WorkspaceConditionTypeTuningStarted, metav1.ConditionFalse,
"WorkspaceTuningStatusFailed", err.Error()); updateErr != nil {
klog.ErrorS(updateErr, "failed to update workspace status", "workspace", klog.KObj(wObj))
return updateErr
} else {
return err

}
}

if err := c.updateStatusConditionIfNotMatch(ctx, wObj, kaitov1alpha1.WorkspaceConditionTypeTuningStarted, metav1.ConditionTrue,
"WorkspaceTuningStatusStarted", "Tuning has been deployed successfully"); err != nil {
klog.ErrorS(err, "failed to update workspace status", "workspace", klog.KObj(wObj))
return err
}

return nil
}

Expand Down

0 comments on commit 6a47da0

Please sign in to comment.