app ls --status
shows more detailles about the deployment state
#280
@ -409,7 +409,7 @@ func GetAppStatuses(apps []App, MachineReadable bool) (map[string]map[string]str
|
|||||||
result["chaos"] = chaos
|
result["chaos"] = chaos
|
||||||
}
|
}
|
||||||
|
|
||||||
labelKey = fmt.Sprintf("coop-cloud.%s.chaos_version", name)
|
labelKey = fmt.Sprintf("coop-cloud.%s.chaos-version", name)
|
||||||
moritz marked this conversation as resolved
Outdated
|
|||||||
if chaosVersion, ok := service.Spec.Labels[labelKey]; ok {
|
if chaosVersion, ok := service.Spec.Labels[labelKey]; ok {
|
||||||
result["chaosVersion"] = chaosVersion
|
result["chaosVersion"] = chaosVersion
|
||||||
}
|
}
|
||||||
@ -517,12 +517,12 @@ func SetChaosLabel(compose *composetypes.Config, stackName string, chaos bool) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// SetChaosVersionLabel adds the label 'coop-cloud.${STACK_NAME}.chaos_version=$(GIT_COMMIT)' to the app container
|
// SetChaosVersionLabel adds the label 'coop-cloud.${STACK_NAME}.chaos-version=$(GIT_COMMIT)' to the app container
|
||||||
func SetChaosVersionLabel(compose *composetypes.Config, stackName string, chaosVersion string) {
|
func SetChaosVersionLabel(compose *composetypes.Config, stackName string, chaosVersion string) {
|
||||||
for _, service := range compose.Services {
|
for _, service := range compose.Services {
|
||||||
if service.Name == "app" {
|
if service.Name == "app" {
|
||||||
logrus.Debugf("set label 'coop-cloud.%s.chaos_version' to %v for %s", stackName, chaosVersion, stackName)
|
logrus.Debugf("set label 'coop-cloud.%s.chaos-version' to %v for %s", stackName, chaosVersion, stackName)
|
||||||
labelKey := fmt.Sprintf("coop-cloud.%s.chaos_version", stackName)
|
labelKey := fmt.Sprintf("coop-cloud.%s.chaos-version", stackName)
|
||||||
service.Deploy.Labels[labelKey] = chaosVersion
|
service.Deploy.Labels[labelKey] = chaosVersion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user
chaos_version
->chaos-version
following the convention of-
? This would require updating in several places in this PR.