Skip to content

Commit c749f92

Browse files
authored
Merge pull request #3815 from cnvergence/fix-flaky-wstype-e2e
fix: set the interim workspace phase as Scheduling
2 parents a168c03 + 9090257 commit c749f92

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

pkg/reconciler/tenancy/workspace/workspace_reconcile_metadata.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ func (r *metaDataReconciler) reconcile(ctx context.Context, workspace *tenancyv1
3737
}
3838

3939
changed := false
40+
41+
if workspace.Status.Phase == "" {
42+
workspace.Status.Phase = corev1alpha1.LogicalClusterPhaseScheduling
43+
changed = true
44+
}
45+
4046
expected := string(workspace.Status.Phase)
4147
if !workspace.DeletionTimestamp.IsZero() {
4248
expected = "Deleting"

0 commit comments

Comments
 (0)