Run Calico E2E with the Kubernetes Agent backend - #24673
Draft
nubtron wants to merge 57 commits into
Draft
Conversation
🎉 All green!🧪 All tests passed 🎯 Code Coverage (details) 🔗 Commit SHA: f35fe99 | Docs | Datadog PR Page | Give us feedback! |
3 tasks
nubtron
force-pushed
the
nubtron/calico-kubernetes-agent-e2e
branch
4 times, most recently
from
July 30, 2026 13:31
7fddc4e to
6bc1e7c
Compare
Clarified the implementation details regarding Kubernetes node support.
Reading self.metadata['kubernetes'] unguarded turned a missing metadata block into a bare KeyError, so an environment that selects agent_type 'kubernetes' without the accompanying mapping failed with 'Unable to start the Agent: kubernetes' and gave a raw traceback from ddev env shell, which only handles CalledProcessError. Validate the mapping where it is read so the failure names the missing contract instead.
start() stamped PREPARED_MARKER after _restart_agent_process(), so a container replaced during the restart was marked prepared. The marker lives in the container filesystem and the pod declares no volumes, so a replacement loses the copied conf.yaml, auto_conf.yaml and the editable installs, while _wait_for_agent() still succeeds against the fresh container. Every later _require_prepared() check then passed and tests silently exercised the Agent-shipped integration with no configuration. Stamp the marker once preparation is complete and assert it after the restart, matching the invariant restart() already relies on. Checking after the stamp instead would only observe the gap between the two commands.
nubtron
force-pushed
the
nubtron/kubernetes-agent-interface-e2e
branch
from
August 10, 2026 09:28
2a64043 to
f21cf4c
Compare
nubtron
force-pushed
the
nubtron/calico-kubernetes-agent-e2e
branch
from
August 10, 2026 09:35
34d6c3b to
f35fe99
Compare
Contributor
Validation ReportAll 21 validations passed. Show details
|
Base automatically changed from
nubtron/kubernetes-agent-interface-e2e
to
master
August 10, 2026 17:43
An error occurred while trying to automatically change base from
nubtron/kubernetes-agent-interface-e2e
to
master
August 10, 2026 17:43
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What does this PR do?
Run the Calico Kind E2E with the Kubernetes Agent backend and configure the check with the in-cluster Felix metrics Service endpoint.
The endpoint readiness check now runs from a temporary BusyBox pod because Kubernetes Service DNS is not resolvable from the host. It retains the existing 100 attempts with a two-second wait while avoiding a persistent port-forward used only for Agent transport.
Motivation
This migration exercises Calico through the Kubernetes Agent interface introduced by #24639 while preserving the custom Kind networking configuration, Calico CNI setup, Felix metrics patch, startup sleep, instance options, and existing tests.
Validation:
cd ddev && hatch run -- ddev --no-interactive test -fs calicocd ddev && hatch run -- ddev --no-interactive test --lint calicocd ddev && hatch run -- ddev --no-interactive test calicocd ddev && hatch run ddev env start --dev calico py3.13cd ddev && hatch run ddev env test --dev calico py3.13(1 passed)cd ddev && hatch run ddev env stop calico py3.13Review checklist (to be filled by reviewers)
qa/requiredif this PR needs QA validation, orqa/skip-qaif it does not. Exactly one of the two is required.backport/<branch-name>label to the PR and it will automatically open a backport PR once this one is merged