Skip to content

Commit c3b6ffc

Browse files
committed
Add Deploying (NotReady) status
1 parent 616d016 commit c3b6ffc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pkg/printers/problem.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ func getStatusForProblemEnvironment(problemEnvironment *v1alpha1.ProblemEnvironm
5353
v1alpha1.ProblemEnvironmentConditionDeployed,
5454
) == metav1.ConditionTrue
5555

56+
ready := util.GetProblemEnvironmentCondition(
57+
problemEnvironment,
58+
v1alpha1.ProblemEnvironmentConditionReady,
59+
) == metav1.ConditionTrue
60+
5661
assigned := util.GetProblemEnvironmentCondition(
5762
problemEnvironment,
5863
v1alpha1.ProblemEnvironmentConditionAssigned,
@@ -66,6 +71,10 @@ func getStatusForProblemEnvironment(problemEnvironment *v1alpha1.ProblemEnvironm
6671
return "Deploying"
6772
}
6873

74+
if !ready {
75+
return "Deploying (NotReady)"
76+
}
77+
6978
if !assigned {
7079
return "Unassigned"
7180
}

0 commit comments

Comments
 (0)