From 3239a6e42eb67392d7eb03bb5e02f0ed633a2a76 Mon Sep 17 00:00:00 2001 From: Jiaxin Yan Date: Tue, 21 Jan 2025 16:26:09 +0800 Subject: [PATCH] summary is point --- api/pkg/apis/v1alpha1/managers/solution/message_types.go | 2 +- api/pkg/apis/v1alpha1/managers/solution/solution-manager.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/pkg/apis/v1alpha1/managers/solution/message_types.go b/api/pkg/apis/v1alpha1/managers/solution/message_types.go index 74f596579..373210870 100644 --- a/api/pkg/apis/v1alpha1/managers/solution/message_types.go +++ b/api/pkg/apis/v1alpha1/managers/solution/message_types.go @@ -58,7 +58,7 @@ type PlanState struct { ExpireTime time.Time `json:"expireTime"` TotalSteps int `json:"totalSteps"` CompletedSteps int `json:"completedSteps"` - Summary model.SummarySpec `json:"summary"` + Summary *model.SummarySpec `json:"summary"` MergedState model.DeploymentState `json:"mergedState"` Deployment model.DeploymentSpec `json:"deployment"` CurrentState model.DeploymentState `json:"currentState"` diff --git a/api/pkg/apis/v1alpha1/managers/solution/solution-manager.go b/api/pkg/apis/v1alpha1/managers/solution/solution-manager.go index 82d4fe6f3..842eb3fab 100644 --- a/api/pkg/apis/v1alpha1/managers/solution/solution-manager.go +++ b/api/pkg/apis/v1alpha1/managers/solution/solution-manager.go @@ -476,7 +476,7 @@ func createPlanState(planEnvelope PlanEnvelope) *PlanState { StartTime: time.Now(), TotalSteps: len(planEnvelope.Plan.Steps), Phase: planEnvelope.Phase, - Summary: model.SummarySpec{ + Summary: &model.SummarySpec{ TargetResults: make(map[string]model.TargetResultSpec), TargetCount: len(planEnvelope.Deployment.Targets), SuccessCount: 0,