From 1bc91d0c7c29cbb69183b6b038a5f2f171cd2e49 Mon Sep 17 00:00:00 2001 From: Viktor Pettersson Date: Tue, 20 May 2025 08:28:40 +0200 Subject: [PATCH] fix(edge-update): set edge stack status to EdgeStackStatusError to avoid redeployment of portainer-updater [BE-11855] (#714) --- pkg/libstack/compose/composeplugin.go | 5 +++-- pkg/libstack/libstack.go | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/pkg/libstack/compose/composeplugin.go b/pkg/libstack/compose/composeplugin.go index 01a5134ea..394de356e 100644 --- a/pkg/libstack/compose/composeplugin.go +++ b/pkg/libstack/compose/composeplugin.go @@ -270,8 +270,9 @@ func (c *ComposeDeployer) GetExistingEdgeStacks(ctx context.Context) ([]libstack } m[id] = libstack.EdgeStack{ - ID: id, - Name: cs.Labels[api.ProjectLabel], + ID: id, + Name: cs.Labels[api.ProjectLabel], + ExitCode: cs.ExitCode, } } } diff --git a/pkg/libstack/libstack.go b/pkg/libstack/libstack.go index 4e7b184ea..e4125d3ca 100644 --- a/pkg/libstack/libstack.go +++ b/pkg/libstack/libstack.go @@ -88,6 +88,7 @@ type RemoveOptions struct { } type EdgeStack struct { - ID int - Name string + ID int + Name string + ExitCode int }