From 598b8d0f28bba86d60a0b0eec021d54eae6d7725 Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Thu, 10 Aug 2023 11:58:40 +1200 Subject: [PATCH] fix(stagger): introduce stack version into DeploymentInfo struct (#10011) --- api/portainer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/portainer.go b/api/portainer.go index eff820edc..e0c311f23 100644 --- a/api/portainer.go +++ b/api/portainer.go @@ -301,6 +301,8 @@ type ( // StackDeploymentInfo records the information of a deployed stack StackDeploymentInfo struct { + // Version is the version of the stack and also is the deployed version in edge agent + Version int `json:"Version"` // FileVersion is the version of the stack file, used to detect changes FileVersion int `json:"FileVersion"` // ConfigHash is the commit hash of the git repository used for deploying the stack