Skip to content

Commit 55d27d1

Browse files
authored
Enhance GetLivestateRequest with additional application details (#5669)
Updated the GetLivestateRequest to include PipedId, ApplicationName, and DeployTargets for improved context in the livestate reporting process. Signed-off-by: Shinnosuke Sawada-Dazai <[email protected]>
1 parent 7b4c9bd commit 55d27d1

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkg/app/pipedv1/livestatereporter/livestatereporter.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,11 @@ func (r *reporter) flush(ctx context.Context, app *model.Application, repo git.R
217217
syncStates := make([]*model.ApplicationSyncState, 0)
218218
for _, pluginClient := range pluginClis {
219219
res, err := pluginClient.GetLivestate(ctx, &livestate.GetLivestateRequest{
220-
ApplicationId: app.Id,
221-
DeploySource: ds.ToPluginDeploySource(),
220+
PipedId: app.GetPipedId(),
221+
ApplicationId: app.GetId(),
222+
ApplicationName: app.GetName(),
223+
DeploySource: ds.ToPluginDeploySource(),
224+
DeployTargets: app.GetDeployTargets(),
222225
})
223226
if err != nil {
224227
r.logger.Info(fmt.Sprintf("no app state of application %s to report", app.Id))

0 commit comments

Comments
 (0)