Fix: sync status of Terraform typed components to application (#2845)

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

Signed-off-by: zzxwill <zzxwill@gmail.com>
(cherry picked from commit 1a13735d7b)

Co-authored-by: zzxwill <zzxwill@gmail.com>
This commit is contained in:
github-actions[bot]
2021-11-30 17:52:57 +08:00
committed by GitHub
co-authored by zzxwill
parent e636d7c48c
commit 493d8bdc5d
@@ -184,8 +184,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 {