File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,8 @@ func (r *InstanceReconciler) reconcileInstanceReadyCondition(
8282 ObservedGeneration : instance .Generation ,
8383 Message : "Instance has not been programmed" ,
8484 }
85+ } else {
86+ readyCondition = readyCondition .DeepCopy ()
8587 }
8688
8789 if instance .Spec .Controller != nil && len (instance .Spec .Controller .SchedulingGates ) > 0 {
Original file line number Diff line number Diff line change @@ -55,6 +55,18 @@ func TestReconcileInstanceReadyCondition(t *testing.T) {
5555 },
5656 },
5757 },
58+ Status : computev1alpha.InstanceStatus {
59+ Conditions : []metav1.Condition {
60+ {
61+ Type : computev1alpha .InstanceReady ,
62+ Status : metav1 .ConditionFalse ,
63+ Reason : computev1alpha .InstanceProgrammedReasonPendingProgramming ,
64+ Message : "Instance has not been programmed" ,
65+ ObservedGeneration : 1 ,
66+ LastTransitionTime : metav1 .Now (),
67+ },
68+ },
69+ },
5870 },
5971 expectedChanged : true ,
6072 expectedCondition : & metav1.Condition {
You can’t perform that action at this time.
0 commit comments