fix(edge-update): set edge stack status to EdgeStackStatusError to avoid redeployment of portainer-updater [BE-11855] (#714)

pull/12700/head
Viktor Pettersson 2025-05-20 08:28:40 +02:00 committed by GitHub
parent 799325d9f8
commit 1bc91d0c7c
2 changed files with 6 additions and 4 deletions

View File

@ -270,8 +270,9 @@ func (c *ComposeDeployer) GetExistingEdgeStacks(ctx context.Context) ([]libstack
} }
m[id] = libstack.EdgeStack{ m[id] = libstack.EdgeStack{
ID: id, ID: id,
Name: cs.Labels[api.ProjectLabel], Name: cs.Labels[api.ProjectLabel],
ExitCode: cs.ExitCode,
} }
} }
} }

View File

@ -88,6 +88,7 @@ type RemoveOptions struct {
} }
type EdgeStack struct { type EdgeStack struct {
ID int ID int
Name string Name string
ExitCode int
} }