Skip to content

Commit e1478ab

Browse files
Gkrumbach07claude
andauthored
fix: patch agent registry for local images during kind-up (#857)
## Summary - When `LOCAL_IMAGES=true`, patches the `ambient-agent-registry` configmap to use `localhost/` image references instead of `quay.io/ambient_code/` - Fixes runner and state-sync pods pulling from Quay instead of using locally-built images in the kind cluster ## Changes After `kubectl apply -k components/manifests/overlays/kind-local/`, the Makefile now runs a `sed` + `kubectl patch` to replace: - `quay.io/ambient_code/vteam_claude_runner:<tag>` → `localhost/vteam_claude_runner:latest` - `quay.io/ambient_code/vteam_state_sync:<tag>` → `localhost/vteam_state_sync:latest` ## Test plan - [ ] `make kind-up LOCAL_IMAGES=true` patches the configmap automatically - [ ] `kubectl get configmap ambient-agent-registry -n ambient-code -o jsonpath='{.data}'` shows `localhost/` images - [ ] New sessions create runner pods using local images 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 186f964 commit e1478ab

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Makefile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -677,6 +677,12 @@ kind-up: check-kind check-kubectl ## Start kind cluster (LOCAL_IMAGES=true to bu
677677
$(MAKE) --no-print-directory _kind-load-images; \
678678
echo "$(COLOR_BLUE)$(COLOR_RESET) Deploying with locally-built images..."; \
679679
kubectl apply --validate=false -k components/manifests/overlays/kind-local/; \
680+
echo "$(COLOR_BLUE)$(COLOR_RESET) Patching agent registry for local images..."; \
681+
REGISTRY=$$(kubectl get configmap ambient-agent-registry -n $(NAMESPACE) -o jsonpath='{.data.agent-registry\.json}'); \
682+
UPDATED=$$(echo "$$REGISTRY" | sed 's|quay.io/ambient_code/vteam_claude_runner:[^"]*|localhost/vteam_claude_runner:latest|g; s|quay.io/ambient_code/vteam_state_sync:[^"]*|localhost/vteam_state_sync:latest|g'); \
683+
kubectl patch configmap ambient-agent-registry -n $(NAMESPACE) --type=merge \
684+
-p "{\"data\":{\"agent-registry.json\":$$(echo "$$UPDATED" | jq -Rs .)}}"; \
685+
echo "$(COLOR_GREEN)$(COLOR_RESET) Agent registry patched for local images"; \
680686
else \
681687
echo "$(COLOR_BLUE)$(COLOR_RESET) Deploying with Quay.io images..."; \
682688
kubectl apply --validate=false -k components/manifests/overlays/kind/; \

0 commit comments

Comments
 (0)