From 47f29002f0dc18044d3ff8a014f4499797f0badf Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Wed, 17 Jan 2024 10:20:59 +1300 Subject: [PATCH] fix(edgestack): repull image not work in git autoupdate [EE-6430] (#10952) --- api/edge/edge.go | 4 ++++ api/portainer.go | 2 ++ 2 files changed, 6 insertions(+) diff --git a/api/edge/edge.go b/api/edge/edge.go index 38cb469c7..aac5c3029 100644 --- a/api/edge/edge.go +++ b/api/edge/edge.go @@ -51,6 +51,10 @@ type ( // Used only for EE // EnvVars is a list of environment variables to inject into the stack EnvVars []portainer.Pair + + // Used only for EE async edge agent + // ReadyRePullImage is a flag to indicate whether the auto update is trigger to re-pull image + ReadyRePullImage bool } // RegistryCredentials holds the credentials for a Docker registry. diff --git a/api/portainer.go b/api/portainer.go index 48cc5f9da..7a6653e57 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -354,6 +354,8 @@ type ( EndpointID EndpointID // EE only feature DeploymentInfo StackDeploymentInfo + // ReadyRePullImage is a flag to indicate whether the auto update is trigger to re-pull image + ReadyRePullImage bool // Deprecated Details EdgeStackStatusDetails