diff options
Diffstat (limited to 'heat/vFW_CNF_CDS/templates/cba')
-rw-r--r-- | heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt b/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt index 6c45b4e9..68d83e03 100644 --- a/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt +++ b/heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt @@ -95,8 +95,20 @@ open class K8sHealthCheck : AbstractScriptComponentFunction() { } jobs.joinAll() } - log.info("Get statuses finished:") - log.info("$statuses") + var success = true + statuses?.forEach { it -> + if (it.value != "Succeeded") { + success = false + } + } + log.info("---") + if (success) { + log.info("Healthcheck finished successfully") + } else { + log.info("Healthcheck finished with failure") + } + log.info("Detailed results: $statuses") + log.info("---") return statuses } |