Skip to content

Issues #56/#57: real K8s exec + batch-pod support in Containerized.Kubernetes (feeds #36 Stage C, #52 harness) - #58

Merged
larsbuch merged 1 commit into
mainfrom
vibe/k8s-exec-batch-pods-293624
Nov 29, 2026
Merged

larsbuch merged 1 commit into
mainfrom
vibe/k8s-exec-batch-pods-293624

Conversation

@larsbuch

Copy link
Copy Markdown
Contributor

Summary

Fixes the two blockers found by the k8s-testkit v7 released-package suite, and updates the #36 consumption docs so the Containerized packages on the DevelApp-ai GitHub Packages feed are actually usable for Taskhandler M10 Stage C — and so the #52 container-runtime leg can later be run locally through a test harness.

Verification

  • No .NET SDK is available in this sandbox, so build/tests could not be run locally — CI (pr-validation.yml: restore, build solution, both test projects, warning grep) is the verification gate. The exec API usage was verified against the KubernetesClient v17.0.14 sources (IKubernetes.NamespacedPodExecAsync(name, namespace, container, command, tty, ExecAsyncCallback, ct) → Task<int>; ExecAsyncCallback(Stream, Stream, Stream)).
  • dotnet test RuntimePluggableClassFactory.Containerized.Tests (CI) runs the new hermetic tests; live tests self-skip without CRPCF_K8S_LIVE_TESTS=1.
  • Local harness run (for Real Docker/K8s container-runtime measurement leg of M2 on Z13 hardware (postponed) #52 / k8s-testkit): CRPCF_K8S_LIVE_TESTS=1 KUBECONFIG=<local cluster> dotnet test RuntimePluggableClassFactory.Containerized.Tests --filter KubernetesLiveContractTests.
  • Packaging is unchanged (same projects, same KubernetesClient 17.0.14 pin → §8.1 dependency graph and the NU1903-clean audit still hold); the packages publish to GitHub Packages on push to main via the existing dotnet-cicd.yml (Publish CRPCF Containerized to GitHub Packages — unblocks Taskhandler M10 Stage C #36).

Closes #56
Closes #57

@larsbuch
larsbuch force-pushed the vibe/k8s-exec-batch-pods-293624 branch 2 times, most recently from 927a100 to 22c8783 Compare November 29, 2026 12:24
…bernetes (feeds #36 Stage C and the #52 local harness)

- #56: KubernetesOrchestrator.ExecuteAsync now runs a real Kubernetes exec
  (IKubernetes.NamespacedPodExecAsync, SPDY) instead of the NotImplementedException
  SimulateExecution placeholder; InputData goes to the process stdin (default
  command /app/plugin-executor, overridable via ExecutionConfiguration["command"]),
  ContainerExecutionResult carries real exit code/stdout/stderr/duration, and
  ContainerExecutionRequest.Timeout kills the exec on deadline (linked CTS) and
  reports a failed result; caller cancellation still propagates as OCE
- #57: CreateContainerAsync treats Succeeded as terminal (returns Stopped instead of
  a Ready-timeout for batch-style plugin pods), fails fast with the kubelet reason
  on Failed phase / Pending+Status.Reason / container waiting reasons
  (CreateContainerError, ImagePullBackOff, ...) / non-zero terminated exit codes;
  ContainerSpec gains Command/Args entrypoint overrides, ContainerSecurity gains
  RunAsUser; pod-ready polling configurable via PodReadyMaxAttempts/PollIntervalMs
- K8s transport moved behind protected virtual wrappers (CreatePodAsync/ReadPodAsync/
  DeletePodAsync/ListPodsAsync/ExecInPodAsync) as the fakeable seam for tests/harness
- Tests: hermetic KubernetesOrchestratorTests (mocked NamespacedPodExecAsync + fake
  cluster) and live KubernetesLiveContractTests gated on CRPCF_K8S_LIVE_TESTS=1 for
  local k8s-testkit-style runs (#52)
- Docs: CRPCF_DEPLOYMENT_GUIDE #8 documents the fixed Kubernetes backend contract,
  image requirements/per-plugin security overrides, and the #56/#57 minimum version
  (#36); CHANGELOG updated

Co-authored-by: larsbuch <larsbuch@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants