Skip to content

Commit f4c5cb5

Browse files
mprpicclaude
andauthored
fix: kind image loading with podman/Vertex (#877)
Use podman save | ctr import for loading images into kind when using podman, since kind load docker-image cannot find localhost/-prefixed images. Also restart backend-api after Vertex AI configmap patching so it picks up USE_VERTEX=1. This was broken for podman setups by 374f50b it seems. Signed-off-by: Martin Prpič <mprpic@redhat.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 744c0d4 commit f4c5cb5

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -884,12 +884,11 @@ _kind-load-images: ## Internal: Load images into kind cluster
884884
@echo "$(COLOR_BLUE)$(COLOR_RESET) Loading images into kind ($(KIND_CLUSTER_NAME))..."
885885
@for img in $(BACKEND_IMAGE) $(FRONTEND_IMAGE) $(OPERATOR_IMAGE) $(RUNNER_IMAGE) $(STATE_SYNC_IMAGE) $(PUBLIC_API_IMAGE); do \
886886
echo " Loading $(KIND_IMAGE_PREFIX)$$img..."; \
887-
if [ -n "$(KIND_HOST)" ]; then \
887+
if [ -n "$(KIND_HOST)" ] || [ "$(CONTAINER_ENGINE)" = "podman" ]; then \
888888
$(CONTAINER_ENGINE) save $(KIND_IMAGE_PREFIX)$$img | \
889889
$(CONTAINER_ENGINE) exec -i $(KIND_CLUSTER_NAME)-control-plane \
890890
ctr --namespace=k8s.io images import -; \
891891
else \
892-
$(if $(filter podman,$(CONTAINER_ENGINE)),KIND_EXPERIMENTAL_PROVIDER=podman) \
893892
kind load docker-image $(KIND_IMAGE_PREFIX)$$img --name $(KIND_CLUSTER_NAME); \
894893
fi; \
895894
done

scripts/setup-vertex-kind.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,10 +152,12 @@ kubectl patch configmap operator-config -n "$NAMESPACE" --type merge -p "{
152152
echo " Done"
153153
echo ""
154154

155-
# Step 3: Restart operator to pick up changes
156-
echo "Step 3/3: Restarting operator to apply changes..."
155+
# Step 3: Restart operator and backend to pick up changes
156+
echo "Step 3/3: Restarting operator and backend to apply changes..."
157157
kubectl rollout restart deployment agentic-operator -n "$NAMESPACE"
158+
kubectl rollout restart deployment backend-api -n "$NAMESPACE"
158159
kubectl rollout status deployment agentic-operator -n "$NAMESPACE" --timeout=60s
160+
kubectl rollout status deployment backend-api -n "$NAMESPACE" --timeout=60s
159161
echo ""
160162

161163
echo "=== Setup Complete ==="

0 commit comments

Comments
 (0)