8000 🐛 Fix Kind E2E dependency bootstrap by abahmed · Pull Request #514 · abahmed/kwatch · GitHub
[go: up one dir, main page]

Skip to content

🐛 Fix Kind E2E dependency bootstrap - #514

Merged
abahmed merged 1 commit into
mainfrom
fix/e2e-metrics-server-bootstrap
Sep 23, 2026
Merged

abahmed merged 1 commit into
mainfrom
fix/e2e-metrics-server-bootstrap

Conversation

@abahmed
@abahmed abahmed commented Sep 23, 2026 •
Copy link
Copy Markdown
Owner

Summary

  • build a valid JSON patch when enabling metrics-server on Kind
  • remove the undeclared ripgrep dependency from artifact safety checks
  • forward Kwatch diagnostics to the actual health port (8060)
  • identify the active leader through leader-only /readyz, not standby-compatible /availabilityz
  • suppress matching sensitive lines and discard unsafe diagnostics before artifact upload

Root causes and review findings

The shell line continuation was inside a single-quoted JSON string, so Kubernetes received a literal backslash and malformed patch field. Metrics-server retained an old replica and timed out. Failure diagnostics then attempted to run rg, which is not installed by the manual scenario workflow. The wider review also found that Kwatch diagnostics targeted the receiver port and could select a standby Pod, while artifact safety failures still left unsafe files available for upload.

Validation

  • make verify ✅
  • shellcheck scripts/test-kind-scenarios.sh scripts/check-e2e-artifacts.sh ✅
  • exact metrics patch serialization check ✅
  • artifact scanner safe/unsafe and no-leak checks ✅

The full Kind run cannot execute locally because Docker is unavailable on this host. The manual workflow intentionally resolves and tests latest main, so it will be triggered after this PR is merged.

@abahmed
abahmed force-pushed the fix/e2e-metrics-server-bootstrap branch from 9e7e27c to 4fb0b21 Compare September 23, 2026 15:30
@abahmed
abahmed merged commit 4585640 into main Sep 23, 2026
8 of 9 checks passed
@abahmed
abahmed deleted the fix/e2e-metrics-server-bootstrap branch September 23, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

0