mirror of
https://github.com/portainer/portainer.git
synced 2025-07-21 22:39:41 +02:00
feat(app/edge-stack): ability to prune containers on edge stack update (#216)
This commit is contained in:
parent
ce7e0d8d60
commit
52c90d4d0a
2 changed files with 9 additions and 3 deletions
|
@ -58,6 +58,15 @@ type (
|
||||||
// Used only for EE async edge agent
|
// Used only for EE async edge agent
|
||||||
// ReadyRePullImage is a flag to indicate whether the auto update is trigger to re-pull image
|
// ReadyRePullImage is a flag to indicate whether the auto update is trigger to re-pull image
|
||||||
ReadyRePullImage bool
|
ReadyRePullImage bool
|
||||||
|
|
||||||
|
DeployerOptionsPayload DeployerOptionsPayload
|
||||||
|
}
|
||||||
|
|
||||||
|
DeployerOptionsPayload struct {
|
||||||
|
// Prune is a flag indicating if the agent must prune the containers or not when creating/updating an edge stack
|
||||||
|
// This flag drives docker compose `--remove-orphans` and docker stack `--prune` options
|
||||||
|
// Used only for EE
|
||||||
|
Prune bool
|
||||||
}
|
}
|
||||||
|
|
||||||
// RegistryCredentials holds the credentials for a Docker registry.
|
// RegistryCredentials holds the credentials for a Docker registry.
|
||||||
|
|
|
@ -329,9 +329,6 @@ type (
|
||||||
DeploymentType EdgeStackDeploymentType `json:"DeploymentType"`
|
DeploymentType EdgeStackDeploymentType `json:"DeploymentType"`
|
||||||
// Uses the manifest's namespaces instead of the default one
|
// Uses the manifest's namespaces instead of the default one
|
||||||
UseManifestNamespaces bool
|
UseManifestNamespaces bool
|
||||||
|
|
||||||
// Deprecated
|
|
||||||
Prune bool `json:"Prune,omitempty"`
|
|
||||||
}
|
}
|
||||||
|
|
||||||
EdgeStackDeploymentType int
|
EdgeStackDeploymentType int
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue