Files
cozystack/hack
Myasnikov Daniil 17b2caab4d 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 <noreply@anthropic.com>
Signed-off-by: Myasnikov Daniil <myasnikovdaniil2001@gmail.com>
2026-05-26 16:50:11 +05:00
..
2026-02-17 22:54:12 +01:00