Skip to content

Commit 45696f3

Browse files
authored
Preload the operator image to each Kind worker (#305)
1 parent 399c143 commit 45696f3

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

scripts/deploy-community-operator.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@ else
4444
export CATALOG_NAMESPACE="openshift-marketplace"
4545
fi
4646

47+
# Pre-pull the image for the operator
48+
docker pull "$COMMUNITY_OPERATOR_IMAGEREPO"/"$COMMUNITY_OPERATOR_BASE":"$COMMUNITY_OPERATOR_IMAGEVERSION"
49+
docker save "$COMMUNITY_OPERATOR_IMAGEREPO"/"$COMMUNITY_OPERATOR_BASE":"$COMMUNITY_OPERATOR_IMAGEVERSION" > ./temp/"$COMMUNITY_OPERATOR_BASE"-"$COMMUNITY_OPERATOR_IMAGEVERSION".tar
50+
kind load image-archive ./temp/"$COMMUNITY_OPERATOR_BASE"-"$COMMUNITY_OPERATOR_IMAGEVERSION".tar
51+
4752
# Create the operator group
4853
mkdir -p ./temp
4954

scripts/init-env.sh

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ OPERATOR_BUNDLE_IMAGE=$OPERATOR_BUNDLE_BASE_IMAGE-bundle:v0.0.1
1313
OPERATOR_BUNDLE_IMAGE_FULL_NAME=$REGISTRY$DIRECTORY$OPERATOR_BUNDLE_IMAGE
1414
OPERATOR_REGISTRY_POD_NAME_FULL=$(echo $OPERATOR_BUNDLE_IMAGE_FULL_NAME|sed 's/[\/|\.|:]/-/g')
1515
export \
16-
COMMUNITY_OPERATOR_BASE=hazelcast-platform-operator \
17-
COMMUNITY_OPERATOR_NAME=hazelcast-platform-operator.v5.7.0 \
18-
OPERATOR_IMAGE_FULL_NAME=$REGISTRY$DIRECTORY$OPERATOR_IMAGE \
19-
SECRET_NAME=foo-cert-sec
16+
COMMUNITY_OPERATOR_IMAGEREPO=docker.io/hazelcast \
17+
COMMUNITY_OPERATOR_BASE=hazelcast-platform-operator \
18+
COMMUNITY_OPERATOR_NAME=hazelcast-platform-operator.v5.7.0 \
19+
COMMUNITY_OPERATOR_IMAGEVERSION=5.7 \
20+
OPERATOR_IMAGE_FULL_NAME=$REGISTRY$DIRECTORY$OPERATOR_IMAGE \
21+
SECRET_NAME=foo-cert-sec
2022

2123
export CRD_SCALING_URL=https://github.com/test-network-function/crd-operator-scaling.git
2224
export CRD_SCALING_TAG=v0.0.8

0 commit comments

Comments
 (0)