Fix: sync status of Terraform typed components to application

Synchronized the status of an Terraform typed components to .status.
services of the application

Signed-off-by: zzxwill <zzxwill@gmail.com>
This commit is contained in:
zzxwill
2021-11-30 14:55:47 +08:00
parent 2abd98301f
commit 1a13735d7b
@@ -249,8 +249,10 @@ func (h *AppHandler) collectHealthStatus(wl *appfile.Workload, appRev *v1beta1.A
}
if configuration.Status.Apply.State != terraformtypes.Available {
status.Healthy = false
isHealth = false
} else {
status.Healthy = true
isHealth = true
}
status.Message = configuration.Status.Apply.Message
} else {