mirror of
https://github.com/NVIDIA/OpenShell.git
synced 2026-10-02 07:34:45 +08:00
chore(kubernetes): update Agent Sandbox to v1.0.3 (#3578)
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
This commit is contained in:
@@ -6,7 +6,14 @@
|
||||
# context arguments (for example, --context kind-e2e) as script arguments.
|
||||
set -euo pipefail
|
||||
|
||||
agent_sandbox_version="${AGENT_SANDBOX_VERSION:-v0.5.0}"
|
||||
agent_sandbox_version="${AGENT_SANDBOX_VERSION:-v1.0.3}"
|
||||
|
||||
# Agent Sandbox renamed its core release manifest after v0.5.1. Keep the
|
||||
# v1alpha1 compatibility lane on the asset published with that release.
|
||||
case "${agent_sandbox_version}" in
|
||||
v0.[0-4].*|v0.5.[01]) agent_sandbox_manifest="manifest.yaml" ;;
|
||||
*) agent_sandbox_manifest="sandbox.yaml" ;;
|
||||
esac
|
||||
|
||||
wait_for_agent_sandbox_crd() {
|
||||
local deadline
|
||||
@@ -32,7 +39,7 @@ wait_for_agent_sandbox_crd() {
|
||||
|
||||
echo "Installing agent-sandbox CRDs and controller (${agent_sandbox_version})..."
|
||||
agent_sandbox_base="https://github.com/kubernetes-sigs/agent-sandbox/releases/download/${agent_sandbox_version}"
|
||||
kubectl "$@" apply -f "${agent_sandbox_base}/manifest.yaml"
|
||||
kubectl "$@" apply -f "${agent_sandbox_base}/${agent_sandbox_manifest}"
|
||||
wait_for_agent_sandbox_crd "$@"
|
||||
kubectl "$@" -n agent-sandbox-system rollout status \
|
||||
deployment/agent-sandbox-controller --timeout=300s
|
||||
|
||||
@@ -75,7 +75,7 @@ source "${ROOT}/e2e/support/gateway-common.sh"
|
||||
# Upstream agent-sandbox release. The Kubernetes driver supports the v1beta1
|
||||
# Sandbox API introduced in v0.5.0 and falls back to v1alpha1 for v0.4.6
|
||||
# clusters. Override this env var to exercise the v1alpha1 controller release.
|
||||
AGENT_SANDBOX_VERSION="${AGENT_SANDBOX_VERSION:-v0.5.0}"
|
||||
AGENT_SANDBOX_VERSION="${AGENT_SANDBOX_VERSION:-v1.0.3}"
|
||||
|
||||
e2e_preserve_mise_dirs
|
||||
e2e_align_docker_host_with_cli_context
|
||||
|
||||
Reference in New Issue
Block a user