Skip to content

Commit 2cac75b

Browse files
committed
ci(helm): apply agent-sandbox CRDs and controller before helm install
The Kubernetes compute driver creates and watches the sandboxes.agents.x-k8s.io CRD reconciled by the upstream agent-sandbox-controller. Without those installed, every gateway K8s API call 404s and CreateSandbox never produces a Pod. Apply deploy/kube/manifests/agent-sandbox.yaml after the kind cluster is up, then wait for the CRD to be Established and the controller deployment to roll out before running the smoke test. Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
1 parent c3ea6c8 commit 2cac75b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

‎.github/workflows/branch-helm-e2e.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,17 @@ jobs:
118118
kind load docker-image "$image" --name "$KIND_CLUSTER_NAME"
119119
done
120120
121+
# The Kubernetes compute driver creates/lists/watches the
122+
# sandboxes.agents.x-k8s.io CRD reconciled by the upstream
123+
# agent-sandbox-controller. Without it, every gateway K8s call
124+
# 404s before any sandbox can be created.
125+
- name: Install agent-sandbox CRDs and controller
126+
run: |
127+
set -euo pipefail
128+
kubectl --kubeconfig "$GITHUB_WORKSPACE/kubeconfig" apply -f deploy/kube/manifests/agent-sandbox.yaml
129+
kubectl --kubeconfig "$GITHUB_WORKSPACE/kubeconfig" wait --for=condition=Established crd/sandboxes.agents.x-k8s.io --timeout=120s
130+
kubectl --kubeconfig "$GITHUB_WORKSPACE/kubeconfig" -n agent-sandbox-system rollout status deployment/agent-sandbox-controller --timeout=300s
131+
121132
- name: Run Helm E2E (Rust smoke)
122133
env:
123134
OPENSHELL_E2E_KUBE_CONTEXT: kind-${{ env.KIND_CLUSTER_NAME }}

0 commit comments

Comments
 (0)