@@ -278,23 +278,25 @@ func isPodUnschedulable(pod *v1.Pod) bool {
278
278
func (s * State ) MarshalJSON () ([]byte , error ) {
279
279
280
280
type S struct {
281
- FreeCap []int32 `json:"freeCap"`
282
- SchedulablePods []int32 `json:"schedulablePods"`
283
- Capacity int32 `json:"capacity"`
284
- Replicas int32 `json:"replicas"`
285
- StatefulSetName string `json:"statefulSetName"`
286
- PodSpread map [string ]map [string ]int32 `json:"podSpread"`
287
- Pending map [string ]int32 `json:"pending"`
281
+ FreeCap []int32 `json:"freeCap"`
282
+ SchedulablePods []int32 `json:"schedulablePods"`
283
+ Capacity int32 `json:"capacity"`
284
+ Replicas int32 `json:"replicas"`
285
+ StatefulSetName string `json:"statefulSetName"`
286
+ PodSpread map [string ]map [string ]int32 `json:"podSpread"`
287
+ Pending map [string ]int32 `json:"pending"`
288
+ ExpectedVReplicaByVPod map [string ]int32 `json:"expectedVReplicaByVPod"`
288
289
}
289
290
290
291
sj := S {
291
- FreeCap : s .FreeCap ,
292
- SchedulablePods : s .SchedulablePods ,
293
- Capacity : s .Capacity ,
294
- Replicas : s .Replicas ,
295
- StatefulSetName : s .StatefulSetName ,
296
- PodSpread : ToJSONable (s .PodSpread ),
297
- Pending : toJSONablePending (s .Pending ),
292
+ FreeCap : s .FreeCap ,
293
+ SchedulablePods : s .SchedulablePods ,
294
+ Capacity : s .Capacity ,
295
+ Replicas : s .Replicas ,
296
+ StatefulSetName : s .StatefulSetName ,
297
+ PodSpread : ToJSONable (s .PodSpread ),
298
+ Pending : toJSONablePending (s .Pending ),
299
+ ExpectedVReplicaByVPod : toJSONablePending (s .ExpectedVReplicaByVPod ),
298
300
}
299
301
300
302
return json .Marshal (sj )
0 commit comments