Skip to content

feat(sandbox): add configurable imagePullPolicy for sandbox pods - #256

Merged
drew merged 1 commit into
mainfrom
feat/sandbox-image-pull-policy
Mar 12, 2026
Merged

drew merged 1 commit into
mainfrom
feat/sandbox-image-pull-policy

Conversation

@drew

@drew drew commented Mar 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds OPENSHELL_SANDBOX_IMAGE_PULL_POLICY env var / --sandbox-image-pull-policy CLI flag to the gateway server, propagated through Config → SandboxClient → pod spec generation
  • When set, the imagePullPolicy field is applied to both inline and pod-template sandbox containers; when empty, the field is omitted and Kubernetes applies its default (:latest → Always, anything else → IfNotPresent)
  • Helm chart exposes server.sandboxImagePullPolicy (default empty); cluster-deploy-fast.sh sets it to Always so dev clusters always pull fresh sandbox images

Test Plan

  • mise run pre-commit passes (lint, clippy, tests, helm lint)
  • Manual verification on a local cluster with sandboxImagePullPolicy=Always confirms the field appears in generated pod specs

Add OPENSHELL_SANDBOX_IMAGE_PULL_POLICY env/CLI flag that propagates
through Config -> SandboxClient -> pod spec generation. When set, the
policy is applied to both inline and pod-template sandbox containers.

Helm chart exposes server.sandboxImagePullPolicy (default empty = K8s
default behavior). cluster-deploy-fast sets it to Always so dev
clusters always pull fresh sandbox images.
@drew drew self-assigned this Mar 12, 2026
@drew
drew merged commit e641648 into main Mar 12, 2026
10 checks passed
@drew
drew deleted the feat/sandbox-image-pull-policy branch March 12, 2026 07:00
drew added a commit that referenced this pull request Mar 16, 2026
Add OPENSHELL_SANDBOX_IMAGE_PULL_POLICY env/CLI flag that propagates
through Config -> SandboxClient -> pod spec generation. When set, the
policy is applied to both inline and pod-template sandbox containers.

Helm chart exposes server.sandboxImagePullPolicy (default empty = K8s
default behavior). cluster-deploy-fast sets it to Always so dev
clusters always pull fresh sandbox images.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant