fix: undeploy handles chaos/unstaged in overview

Follows 3a71dc47f8
This commit is contained in:
2025-01-02 21:50:23 +01:00
parent 3a71dc47f8
commit 0a63f9ce27
3 changed files with 37 additions and 11 deletions

View File

@ -107,6 +107,15 @@ type DeployMeta struct {
ChaosVersion string // the --chaos deployment version
}
func (d DeployMeta) String() string {
var out string
out += fmt.Sprintf("{isDeployed: %v, ", d.IsDeployed)
out += fmt.Sprintf("version: %s, ", d.Version)
out += fmt.Sprintf("isChaos: %v, ", d.IsChaos)
out += fmt.Sprintf("chaosVersion: %s}", d.ChaosVersion)
return out
}
// IsDeployed gathers metadata about an app deployment.
func IsDeployed(ctx context.Context, cl *dockerClient.Client, stackName string) (DeployMeta, error) {
deployMeta := DeployMeta{