From 187ec2aa9a7b927516aa594fe51e528ac6e9b47d Mon Sep 17 00:00:00 2001 From: Oscar Zhou <100548325+oscarzhou-portainer@users.noreply.github.com> Date: Thu, 10 Aug 2023 11:58:47 +1200 Subject: [PATCH] fix(stagger): introduce stack version into DeploymentInfo struct (#10027) --- api/portainer.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/api/portainer.go b/api/portainer.go index 2fb1e8957..2756c9d1e 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