Skip to content

Commit

Permalink
Don't pre-load OVN Kind image
Browse files Browse the repository at this point in the history
`kind.sh` runs `kind load-image` which is causing space issues
when running with 3 cluster configurations. Skip this step.

Also, add OVN daemonset image to local registry to optimize run times

Signed-off-by: Vishal Thapar <[email protected]>
  • Loading branch information
vthapar authored and mangelajo committed Jan 22, 2021
1 parent 6515cdb commit 6b2a59e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions scripts/shared/clusters.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,18 @@ function deploy_ovn_cni(){
}

function deploy_kind_ovn(){
local OVN_SRC_IMAGE="quay.io/vthapar/ovn-daemonset-f:latest"
export K8s_VERSION="${version}"
export NET_CIDR_IPV4="${cluster_CIDRs[${cluster}]}"
export SVC_CIDR_IPV4="${service_CIDRs[${cluster}]}"
export KIND_CLUSTER_NAME="${cluster}"
export OVN_IMAGE="quay.io/vthapar/ovn-daemonset-f:latest"
export REGISTRY_IP="${registry_ip}"

docker pull "$OVN_IMAGE"
export OVN_IMAGE="localhost:5000/ovn-daemonset-f:latest"
docker pull "${OVN_SRC_IMAGE}"
docker tag "${OVN_SRC_IMAGE}" "${OVN_IMAGE}"
docker push "${OVN_IMAGE}"
sed -i 's/^kind load/#kind load/g' $OVN_DIR/contrib/kind.sh

( cd ${OVN_DIR}/contrib; ./kind.sh; ) &
if ! wait $! ; then
Expand Down

0 comments on commit 6b2a59e

Please sign in to comment.