Skip to content

Commit

Permalink
feat: follow @AObuchow's answer
Browse files Browse the repository at this point in the history
Signed-off-by: Max batleforc <[email protected]>
  • Loading branch information
batleforc committed Oct 8, 2024
1 parent 5ea5636 commit 03e8d12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion controllers/workspace/devworkspace_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ func (r *DevWorkspaceReconciler) Reconcile(ctx context.Context, req ctrl.Request
serverReady, serverStatusCode, err := checkServerStatus(clusterWorkspace)
if shouldReturn, reconcileResult, reconcileErr := r.checkDWError(workspace, err, "Error checking server status", metrics.ReasonInfrastructureFailure, reqLogger, &reconcileStatus); shouldReturn {
reqLogger.Info("Waiting for DevWorkspace to be ready")
reconcileStatus.setConditionFalse(conditions.DeploymentReady, "Waiting for DevWorkspace to be ready") // No sure of the conditions.DeploymentReady is the right one
reconcileStatus.setConditionFalse(dw.DevWorkspaceReady, "Waiting for DevWorkspace to be ready") // No sure of the conditions.DeploymentReady is the right one
return reconcileResult, reconcileErr
}
if !serverReady {
Expand Down

0 comments on commit 03e8d12

Please sign in to comment.