aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--heat/vFW_CNF_CDS/templates/cba/Scripts/kotlin/K8sHealthCheck.kt16
-rw-r--r--heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml2
2 files changed, 15 insertions, 3 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
}
diff --git a/heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml b/heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml
index 37b41832..70c40c7d 100644
--- a/heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml
+++ b/heat/vFW_CNF_CDS/templates/helm/vfw/templates/tests/ping.yaml
@@ -29,7 +29,7 @@ spec:
"name": {{ .Values.int_private1_net_id | quote }},
"interface": "eth1" ,
"defaultGateway": "false"
- }
+ },
{
"name": {{ .Values.int_private2_net_id | quote }},
"interface": "eth2" ,