refactor(stack): create stack and deploy stack in async flow CE [BE-12650] (#2238)
This commit is contained in:
@@ -31,8 +31,12 @@ func (b *FileContentMethodStackBuilder) SetGeneralInfo(payload *StackPayload, en
|
||||
stackID := b.dataStore.Stack().GetNextIdentifier()
|
||||
b.stack.ID = portainer.StackID(stackID)
|
||||
b.stack.EndpointID = endpoint.ID
|
||||
b.stack.Status = portainer.StackStatusActive
|
||||
b.stack.CreationDate = time.Now().Unix()
|
||||
now := time.Now().Unix()
|
||||
b.stack.Status = portainer.StackStatusDeploying
|
||||
b.stack.CreationDate = now
|
||||
b.stack.DeploymentStatus = []portainer.StackDeploymentStatus{
|
||||
{Status: portainer.StackStatusDeploying, Time: now},
|
||||
}
|
||||
|
||||
return b
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user