feat(preflight): add plugin, API version, and image checks before deploy - #21
feat(preflight): add plugin, API version, and image checks before deploy#21madhugoutham wants to merge 4 commits into
Conversation
Signed-off-by: Madhu Goutham Reddy Ambati <mambati@redhat.com>
Signed-off-by: Madhu Goutham Reddy Ambati <mambati@redhat.com>
Code Review — Automated Analysis7 findings from automated review. 4 are blocking. 🔴 Blocking1. Dead fallback branch in
# current — unreachable when epp_tag is set but tag missing from local repo
if not epp_tag:
...
# fix
elif not epp_tag:
...2. If a manifest has # fix — treat None and missing the same way
scheduler = (spec.get("router") or {}).get("scheduler") or {}3.
4. Every other phase calls 🟡 Recommended5. Fallback The fallback 6. The regex 7. Asserts the oldest git tag always has strictly fewer plugins than newest. Fails legitimately if any plugin is removed or renamed between versions, causing spurious CI failures unrelated to any code bug.
|
Null-safe YAML walks, wire --router-repo, latest-tag only when cluster tag is absent locally, and skip image checks only in discover mode. Signed-off-by: Madhu Goutham Reddy Ambati <mambati@redhat.com>
Null-safe YAML, wire --router-repo, fail-closed Layer-2 fallthrough, narrow discover image skip, tighten PluginType/log extractors, soften brittle tag-count test. Signed-off-by: Madhu Goutham Reddy Ambati <mambati@redhat.com>
|
Thanks for the review. Went through all seven notes.
|
What
test_00_preflightphase that runs before deploying any manifestTesting
uv run pytest tests/)