@@ -44,7 +44,6 @@ if [[ "${VERSION}" == "3.7.8" ]] ;then
4444 # need to align with netbox-chart otherwise the creation of the cluster will hang
4545 declare -a Remote_Images=( \
4646 " busybox:1.36.1" \
47- " docker.io/bitnami/redis:7.2.4-debian-12-r9" \
4847 " docker.io/netboxcommunity/netbox:v3.7.8" \
4948 " ghcr.io/zalando/postgres-operator:v1.12.2" \
5049 " ghcr.io/zalando/spilo-16:3.2-p3" \
@@ -61,7 +60,7 @@ elif [[ "${VERSION}" == "4.0.11" ]] ;then
6160 # need to align with netbox-chart otherwise the creation of the cluster will hang
6261 declare -a Remote_Images=( \
6362 " busybox:1.36.1" \
64- " docker.io/bitnami /redis:7.4.0-debian-12-r2" \
63+ " docker.io/bitnamilegacy /redis:7.4.0-debian-12-r2" \
6564 " ghcr.io/netbox-community/netbox:v4.0.11" \
6665 " ghcr.io/zalando/postgres-operator:v1.12.2" \
6766 " ghcr.io/zalando/spilo-16:3.2-p3" \
@@ -77,7 +76,7 @@ elif [[ "${VERSION}" == "4.1.11" ]] ;then
7776 # need to align with netbox-chart otherwise the creation of the cluster will hang
7877 declare -a Remote_Images=( \
7978 " busybox:1.37.0" \
80- " docker.io/bitnami /redis:7.4.1-debian-12-r2" \
79+ " docker.io/bitnamilegacy /redis:7.4.1-debian-12-r2" \
8180 " ghcr.io/netbox-community/netbox:v4.1.11" \
8281 " ghcr.io/zalando/postgres-operator:v1.12.2" \
8382 " ghcr.io/zalando/spilo-16:3.2-p3" \
9190 exit 1
9291fi
9392
93+ if $IS_VCLUSTER ; then
94+ echo " [Running in vCluster mode] skipping docker pull and kind load for remote images."
95+ else
96+ echo " [Running in Kind mode] pulling and loading remote images into kind cluster..."
97+ for img in " ${Remote_Images[@]} " ; do
98+ docker pull " $img "
99+ kind load docker-image " $img " --name " ${CLUSTER} "
100+ done
101+ fi
102+
94103# build image for loading local data via NetBox API
95104cd " $SCRIPT_DIR /load-data-job"
96105
0 commit comments