Skip to content

Commit 23fba73

Browse files
committed
chore(deploy): install agent-sandbox warm-pool extensions in dev and e2e clusters
Apply extensions.yaml alongside manifest.yaml when bootstrapping the local k3d dev cluster and the e2e kube harness, reusing the pinned AGENT_SANDBOX_VERSION already used for core. This installs the SandboxTemplate / SandboxWarmPool / SandboxClaim CRDs and reconfigures the existing agent-sandbox-controller, so clusters are ready for the warm-pooled sandbox path (RFC 0005). extensions.yaml rolls the controller deployment, so the e2e harness waits for the rollout after both applies and for the new extension CRDs to be Established. No gateway behavior changes yet. Signed-off-by: Roshni Malani <rmalani@nvidia.com>
1 parent be01e29 commit 23fba73

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

e2e/with-kube-gateway.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,10 +533,18 @@ fi
533533
# The Kubernetes compute driver creates and watches Sandbox CRs reconciled
534534
# by the upstream agent-sandbox-controller. Without the CRD + controller,
535535
# every gateway K8s call 404s and CreateSandbox never produces a Pod.
536-
echo "Installing agent-sandbox CRDs and controller (${AGENT_SANDBOX_VERSION})..."
536+
# The warm-pool extensions (SandboxTemplate / SandboxWarmPool / SandboxClaim) are
537+
# applied alongside core so the e2e cluster matches the dev cluster and is ready
538+
# for warm-pooled sandbox coverage. extensions.yaml reconfigures the
539+
# agent-sandbox-controller deployment, so wait for the rollout after both applies.
540+
echo "Installing agent-sandbox CRDs, controller, and warm-pool extensions (${AGENT_SANDBOX_VERSION})..."
537541
_agent_sandbox_base="https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${AGENT_SANDBOX_VERSION}"
538542
kctl apply -f "${_agent_sandbox_base}/manifest.yaml"
543+
kctl apply -f "${_agent_sandbox_base}/extensions.yaml"
539544
kctl wait --for=condition=Established crd/sandboxes.agents.x-k8s.io --timeout=120s
545+
kctl wait --for=condition=Established crd/sandboxtemplates.extensions.agents.x-k8s.io --timeout=120s
546+
kctl wait --for=condition=Established crd/sandboxwarmpools.extensions.agents.x-k8s.io --timeout=120s
547+
kctl wait --for=condition=Established crd/sandboxclaims.extensions.agents.x-k8s.io --timeout=120s
540548
kctl -n agent-sandbox-system rollout status deployment/agent-sandbox-controller --timeout=300s
541549

542550
helm_extra_args=()

tasks/scripts/helm-k3s-local.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,11 @@ apply_base_manifests() {
143143
local base="https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${AGENT_SANDBOX_VERSION}"
144144
echo "Applying agent-sandbox manifest (${AGENT_SANDBOX_VERSION})..."
145145
kubectl --kubeconfig="${KUBECONFIG_TARGET}" apply -f "${base}/manifest.yaml"
146+
# Warm-pool extensions (SandboxTemplate / SandboxWarmPool / SandboxClaim) so the
147+
# cluster is ready for warm-pooled sandboxes. extensions.yaml reconfigures the
148+
# existing agent-sandbox-controller deployment rather than adding a new one.
149+
echo "Applying agent-sandbox warm-pool extensions (${AGENT_SANDBOX_VERSION})..."
150+
kubectl --kubeconfig="${KUBECONFIG_TARGET}" apply -f "${base}/extensions.yaml"
146151
}
147152

148153
configure_ghcr_credentials() {

0 commit comments

Comments
 (0)