Skip to content

Commit

Permalink
fix(dashboard_panels): check to check ready condition in managedchart (
Browse files Browse the repository at this point in the history
…#858) (#859)

Signed-off-by: PoAn Yang <poan.yang@suse.com>
(cherry picked from commit f778336)

Co-authored-by: PoAn Yang <poan.yang@suse.com>
  • Loading branch information
mergify[bot] and FrankYang0529 authored Oct 7, 2024
1 parent d8fb37b commit 1691dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/console/dashboard_panels.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1691dcd

Please sign in to comment.