Skip to content

Commit

Permalink
Support loading image to e2e KinD cluster with podman (#85)
Browse files Browse the repository at this point in the history
* loading image with podman for e2e kind cluster

Signed-off-by: myan <[email protected]>

* remove the tmp tar

Signed-off-by: myan <[email protected]>

---------

Signed-off-by: myan <[email protected]>
  • Loading branch information
yanmxa authored May 8, 2024
1 parent 3f5cbd0 commit 435715c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/e2e/setup/e2e_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,17 @@ export image_tag=latest
export external_image_registry=image-registry.testing
export internal_image_registry=image-registry.testing
make image
kind load docker-image ${external_image_registry}/${namespace}/maestro:$image_tag --name maestro
# related issue: https://github.com/kubernetes-sigs/kind/issues/2038
if command -v docker &> /dev/null; then
kind load docker-image ${external_image_registry}/${namespace}/maestro:$image_tag --name maestro
elif command -v podman &> /dev/null; then
podman save ${external_image_registry}/${namespace}/maestro:$image_tag -o /tmp/maestro.tar
kind load image-archive /tmp/maestro.tar --name maestro
rm /tmp/maestro.tar
else
echo "Neither Docker nor Podman is installed, exiting"
exit 1
fi

# 3. deploy service-ca
kubectl label node maestro-control-plane node-role.kubernetes.io/master=
Expand Down

0 comments on commit 435715c

Please sign in to comment.