You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
utils.NewRuntimeCondition(datav1alpha1.RuntimeWorkersInitialized, datav1alpha1.RuntimeWorkersInitializedReason, "The workers are initialized.", v1.ConditionTrue),
77
-
utils.NewRuntimeCondition(datav1alpha1.RuntimeFusesInitialized, datav1alpha1.RuntimeFusesInitializedReason, "The fuses are initialized.", v1.ConditionTrue),
65
+
runtimeInputs= []*datav1alpha1.JindoRuntime{
66
+
{
67
+
ObjectMeta: metav1.ObjectMeta{
68
+
Name: "hbase",
69
+
Namespace: "fluid",
70
+
},
71
+
Spec: datav1alpha1.JindoRuntimeSpec{
72
+
Replicas: 3, // 2
73
+
},
74
+
Status: datav1alpha1.RuntimeStatus{
75
+
CurrentWorkerNumberScheduled: 2,
76
+
CurrentMasterNumberScheduled: 2, // 0
77
+
CurrentFuseNumberScheduled: 2,
78
+
DesiredMasterNumberScheduled: 3,
79
+
DesiredWorkerNumberScheduled: 2,
80
+
DesiredFuseNumberScheduled: 3,
81
+
Conditions: []datav1alpha1.RuntimeCondition{
82
+
utils.NewRuntimeCondition(datav1alpha1.RuntimeWorkersInitialized, datav1alpha1.RuntimeWorkersInitializedReason, "The workers are initialized.", v1.ConditionTrue),
83
+
utils.NewRuntimeCondition(datav1alpha1.RuntimeFusesInitialized, datav1alpha1.RuntimeFusesInitializedReason, "The fuses are initialized.", v1.ConditionTrue),
84
+
},
85
+
WorkerPhase: "NotReady",
86
+
FusePhase: "NotReady",
78
87
},
79
-
WorkerPhase: "NotReady",
80
-
FusePhase: "NotReady",
81
88
},
82
-
},
83
-
}
84
-
85
-
objs:= []runtime.Object{}
86
-
for_, masterInput:=rangemasterInputs {
87
-
objs=append(objs, masterInput.DeepCopy())
88
-
}
89
+
}
90
+
})
89
91
90
-
for_, workerInput:=rangeworkerInputs {
91
-
objs=append(objs, workerInput.DeepCopy())
92
-
}
92
+
It("should check and update runtime status for hbase", func() {
0 commit comments