Skip to content

Commit a408f5d

Browse files
authored
chore(kubernetes): update Agent Sandbox to v1.0.3 (#3578)
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
1 parent bed9e5e commit a408f5d

10 files changed

Lines changed: 24 additions & 15 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ jobs:
354354
matrix:
355355
include:
356356
- agent_sandbox_api: v1beta1
357-
agent_sandbox_version: v0.5.0
357+
agent_sandbox_version: v1.0.3
358358
- agent_sandbox_api: v1alpha1
359359
agent_sandbox_version: v0.4.6
360360
permissions:

‎.github/workflows/e2e-kubernetes-test.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ on:
3636
description: "Agent Sandbox release to install before OpenShell"
3737
required: false
3838
type: string
39-
default: "v0.5.0"
39+
default: "v1.0.3"
4040
e2e-task:
4141
description: "mise task to run for the Kubernetes e2e job"
4242
required: false

‎.github/workflows/release-canary.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ jobs:
276276
RELEASE_NAME: openshell
277277
RELEASE_NAMESPACE: openshell
278278
KIND_GATEWAY_NAME: kind
279-
AGENT_SANDBOX_VERSION: v0.5.0
279+
AGENT_SANDBOX_VERSION: v1.0.3
280280
steps:
281281
- name: Checkout Agent Sandbox helper
282282
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1

‎architecture/compute-runtimes.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,9 @@ database-backed installs can render a Deployment with `workload.kind=deployment`
439439
HA deployments must point `server.externalDbSecret` at an operator-managed
440440
PostgreSQL database. Agent Sandbox CRDs and controller lifecycle remain
441441
operator-owned; the chart can optionally preflight for a served supported API
442-
but does not install the cluster-scoped dependency.
442+
but does not install the cluster-scoped dependency. OpenShell's Kubernetes test
443+
clusters install the upstream core manifest; Agent Sandbox extensions are not
444+
required by the gateway.
443445
Standalone local deployments start the gateway with a selected runtime such as
444446
Docker, Podman, or VM. The CLI can register multiple gateways and switch between
445447
them without changing the sandbox architecture.

‎deploy/helm/openshell/README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ multiple pre-provisioned workspace namespaces.
2222
The Kubernetes Agent Sandbox CRDs and controller must be installed on the cluster before deploying OpenShell. Install them with:
2323

2424
```shell
25-
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/latest/download/manifest.yaml
25+
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/latest/download/sandbox.yaml
2626
```
2727

2828
The chart does not install this cluster-scoped dependency. By default, it

‎deploy/helm/openshell/README.md.gotmpl‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ multiple pre-provisioned workspace namespaces.
2222
The Kubernetes Agent Sandbox CRDs and controller must be installed on the cluster before deploying OpenShell. Install them with:
2323

2424
```shell
25-
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/latest/download/manifest.yaml
25+
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/latest/download/sandbox.yaml
2626
```
2727

2828
The chart does not install this cluster-scoped dependency. By default, it

‎docs/kubernetes/setup.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ OpenShell uses the [Agent Sandbox](https://agent-sandbox.sigs.k8s.io) Kubernetes
3333
Apply the latest release manifest:
3434

3535
```shell
36-
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/latest/download/manifest.yaml
36+
kubectl apply -f https://github.com/kubernetes-sigs/agent-sandbox/releases/latest/download/sandbox.yaml
3737
```
3838

3939
This creates the `agent-sandbox-system` namespace, installs the `sandboxes.agents.x-k8s.io` CRD, and starts the controller.

‎e2e/support/install-agent-sandbox.sh‎

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
# context arguments (for example, --context kind-e2e) as script arguments.
77
set -euo pipefail
88

9-
agent_sandbox_version="${AGENT_SANDBOX_VERSION:-v0.5.0}"
9+
agent_sandbox_version="${AGENT_SANDBOX_VERSION:-v1.0.3}"
10+
11+
# Agent Sandbox renamed its core release manifest after v0.5.1. Keep the
12+
# v1alpha1 compatibility lane on the asset published with that release.
13+
case "${agent_sandbox_version}" in
14+
v0.[0-4].*|v0.5.[01]) agent_sandbox_manifest="manifest.yaml" ;;
15+
*) agent_sandbox_manifest="sandbox.yaml" ;;
16+
esac
1017

1118
wait_for_agent_sandbox_crd() {
1219
local deadline
@@ -32,7 +39,7 @@ wait_for_agent_sandbox_crd() {
3239

3340
echo "Installing agent-sandbox CRDs and controller (${agent_sandbox_version})..."
3441
agent_sandbox_base="https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${agent_sandbox_version}"
35-
kubectl "$@" apply -f "${agent_sandbox_base}/manifest.yaml"
42+
kubectl "$@" apply -f "${agent_sandbox_base}/${agent_sandbox_manifest}"
3643
wait_for_agent_sandbox_crd "$@"
3744
kubectl "$@" -n agent-sandbox-system rollout status \
3845
deployment/agent-sandbox-controller --timeout=300s

‎e2e/with-kube-gateway.sh‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ source "${ROOT}/e2e/support/gateway-common.sh"
7575
# Upstream agent-sandbox release. The Kubernetes driver supports the v1beta1
7676
# Sandbox API introduced in v0.5.0 and falls back to v1alpha1 for v0.4.6
7777
# clusters. Override this env var to exercise the v1alpha1 controller release.
78-
AGENT_SANDBOX_VERSION="${AGENT_SANDBOX_VERSION:-v0.5.0}"
78+
AGENT_SANDBOX_VERSION="${AGENT_SANDBOX_VERSION:-v1.0.3}"
7979

8080
e2e_preserve_mise_dirs
8181
e2e_align_docker_host_with_cli_context

‎tasks/scripts/helm-k3s-local.sh‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ HOST_LB_PORT="${HELM_K3S_LB_HOST_PORT:-8080}"
3232
DEFAULT_SANDBOX_PRELOAD_IMAGE="nvcr.io/nvidia/base/ubuntu:24.04"
3333
PRELOAD_SANDBOX_IMAGE="${HELM_K3S_PRELOAD_SANDBOX_IMAGE-${DEFAULT_SANDBOX_PRELOAD_IMAGE}}"
3434

35-
# Upstream agent-sandbox release pinned for both CRDs/controller and extensions.
35+
# Upstream agent-sandbox release pinned for the core CRDs and controller.
3636
# The Kubernetes driver supports the v1beta1 Sandbox API introduced in v0.5.0
3737
# and falls back to v1alpha1 for v0.4.6 clusters. Override this env var to
3838
# exercise the v1alpha1 controller release.
39-
AGENT_SANDBOX_VERSION="${AGENT_SANDBOX_VERSION:-v0.5.0}"
39+
AGENT_SANDBOX_VERSION="${AGENT_SANDBOX_VERSION:-v1.0.3}"
4040

4141
# Local OTLP receiver and trace UI. The current Aspire implementation accepts
4242
# OTLP/gRPC directly, so the development cluster needs only one deployment.
@@ -164,9 +164,9 @@ merge_kubeconfig() {
164164

165165
apply_base_manifests() {
166166
require_kubectl
167-
local base="https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${AGENT_SANDBOX_VERSION}"
168-
echo "Applying agent-sandbox manifest (${AGENT_SANDBOX_VERSION})..."
169-
kubectl --kubeconfig="${KUBECONFIG_TARGET}" apply -f "${base}/manifest.yaml"
167+
AGENT_SANDBOX_VERSION="${AGENT_SANDBOX_VERSION}" \
168+
bash "${ROOT}/e2e/support/install-agent-sandbox.sh" \
169+
--kubeconfig="${KUBECONFIG_TARGET}"
170170
}
171171

172172
install_trace_collector() {

0 commit comments

Comments
 (0)