From b2302ede3615466c25fb0e2ee70f4c381ab68fb3 Mon Sep 17 00:00:00 2001 From: PoAn Yang Date: Mon, 7 Oct 2024 11:24:56 +0800 Subject: [PATCH] fix(dashboard_panels): check to check ready condition in managedchart (#858) Signed-off-by: PoAn Yang (cherry picked from commit f7783365ce5ea0d37c34ca8c210ee49b33822fbc) --- 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)