Repository navigation
Commit 17b2caa
committed
feat(hack): improve check-readiness.sh — wait/core/parallel modes and broader coverage
Replace the "True"-anywhere column heuristic with structured status-condition
parsing via jsonpath, and expand coverage to all Flux sources (GitRepository,
OCIRepository, HelmRepository, HelmChart, Bucket), Kustomizations, Nodes
(Ready), APIServices (Available), CRDs (Established), and PVCs (phase=Bound).
New modes:
--wait + --timeout block until ready (exit 0) or timeout (exit 1) — CI gate
--core limit to the 5 cozystack/Flux primitives that drive an
install; minimizes apiserver load during upgrades
--parallel opt-in concurrent fetches (default is sequential to
avoid bursts of N concurrent LISTs while reconcilers
are already hammering the apiserver mid-upgrade)
--verbose show condition reason+message and N/M-not-ready footer
-n / -l scope queries to a namespace or label selector
--no-color explicit toggle (auto-disabled on non-TTY)
Also:
- Detect .spec.suspend separately from failure (rendered as SUSPENDED, not
a hard error)
- Cluster-scoped kinds (Packages, Nodes, APIServices, CRDs) parse correctly
— previously empty leading namespace shifted every column
- Default watch interval 5s → 10s (less aggressive during long upgrades)
- "CRD not installed, skipping" instead of silently scanning empty output
Assisted-By: Claude <[email protected]>
Signed-off-by: Myasnikov Daniil <[email protected]>1 parent 92000f1 commit 17b2caa
1 file changed
Lines changed: 391 additions & 34 deletions
0 commit comments