← Back to Pull requests

internal: Remove legacy Kubernetes runtime #619

Closed
unknown closed this pull request without merging on Aug 12, 2026 17:55 UTC
View on GitHub
unknown unknown commented on Aug 12, 2026 16:54 UTC
Author

Description

Remove the built-in Kubernetes deployment runtime, including its adapter, materialization logic, supporting internal packages, and default registration. Runtime and Deployment remain extension APIs, and embedding applications now supply all concrete runtime types and adapters.

The legacy adapter was fundamentally flawed: it managed Kubernetes custom resources directly instead of integrating with kagent through its REST API. Retiring it establishes a clean boundary for runtime ownership rather than extending that coupling.

Add migration 014 to remove default/kubernetes-default only when it still exactly matches the original seed and no Deployment references it. Modified or referenced rows remain as inert records so upgrades do not leave dangling database references.

Update the deployment dialog to require an explicit Runtime name and stop injecting the kagent-specific KAGENT_NAMESPACE environment variable. Runtime-specific tests and the Kubernetes deployment lifecycle e2e coverage are removed or converted to provider-neutral fixtures.

Change Type

/kind breaking_change

Changelog

``release-note
Removes the legacy Kubernetes runtime.
`

Additional Notes

  • Kept the kagent installation scripts, we can still use those, didn't want to touch automated testing too much here, but I'm guessing the e2e suite is in a rough shape right now

  • The deprecated v1alpha1.TypeKubernetes discriminator remains available for source compatibility, but the registry no longer registers the type or supplies its adapter.

  • A follow-up PR will introduce a kagent Runtime integration through the kagent REST API. Users of the legacy Kubernetes runtime should migrate to that Runtime.

  • Existing modified or referenced kubernetes-default rows are preserved to avoid dangling database references, but they remain inert until their deployments are migrated.

  • Verified with go test ./..., migration upgrade/rollback integration tests, e2e-tag compilation, UI unit tests, the production UI build, and lint. Lint reports one pre-existing warning in ui/app/page.tsx` and no errors.
  • Diff: 267 lines (+200 / -67) across 3 files Reviewer: lcopi Review duration: 60m
    All Vouch review confidence checks passed
    Residual risk 0.25 = Change Risk (0.63) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.63 · 267 lines diff across 3 files
    0.63
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.334
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.063
    Real PR Conversation Timeline
    1 comments
    "Review active on #619"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 62.5% (MEDIUM) · Higher = larger blast radius
    62.5%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 24.7% · Safe to merge
    24.7%