From 1691dcdaaaaca9a7613dca53086414ec4e61960f Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 7 Oct 2024 13:56:52 +0800 Subject: [PATCH] fix(dashboard_panels): check to check ready condition in managedchart (#858) (#859) Signed-off-by: PoAn Yang (cherry picked from commit f7783365ce5ea0d37c34ca8c210ee49b33822fbc) Co-authored-by: PoAn Yang --- pkg/console/dashboard_panels.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/console/dashboard_panels.go b/pkg/console/dashboard_panels.go index a3fdc3237..92c915587 100644 --- a/pkg/console/dashboard_panels.go +++ b/pkg/console/dashboard_panels.go @@ -453,7 +453,7 @@ func k8sIsReady() bool { } func chartIsInstalled() bool { - cmd := exec.Command("/bin/sh", "-c", `kubectl -n fleet-local get ManagedChart harvester -o jsonpath='{.status.conditions}' | jq 'map(select(.type == "Processed" and .status == "True")) | length'`) + cmd := exec.Command("/bin/sh", "-c", `kubectl -n fleet-local get ManagedChart harvester -o jsonpath='{.status.conditions}' | jq 'map(select(.type == "Ready" and .status == "True")) | length'`) cmd.Env = os.Environ() output, err := cmd.Output() outStr := string(output)