@@ -107,23 +107,11 @@ INDEX_V2="${REGISTRY}/busybox-dependencies-index:2.0.0-with-ListBundles-method-$
107
107
TEST_CATALOG_IMAGE=" ${REGISTRY} /test-catalog:${OPM_VERSION} "
108
108
109
109
# Prints true if changes are detected, false otherwise
110
- if [ " CHECK" = true ]; then
110
+ if [ " $ CHECK" = " true" ]; then
111
111
check_changes
112
112
exit 0
113
113
fi
114
114
115
- # Assumes images are already built, kind cluster is running, and kubeconfig is set
116
- if [ " $LOAD_KIND " = true ]; then
117
- ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${BUNDLE_V1_IMAGE} "
118
- ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${BUNDLE_V1_DEP_IMAGE} "
119
- ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${BUNDLE_V2_IMAGE} "
120
- ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${BUNDLE_V2_DEP_IMAGE} "
121
- ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${INDEX_V1} "
122
- ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${INDEX_V2} "
123
- ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${TEST_CATALOG_IMAGE} "
124
- exit 0
125
- fi
126
-
127
115
if [ " $BUILD " = " true" ]; then
128
116
# Busybox Operator
129
117
# Build bundles
@@ -144,6 +132,18 @@ if [ "$BUILD" = "true" ]; then
144
132
${CONTAINER_RUNTIME} tag " ${INDEX_V2} " " ${TEST_CATALOG_IMAGE} "
145
133
fi
146
134
135
+ # Assumes images are already built, kind cluster is running, and kubeconfig is set
136
+ if [ " $LOAD_KIND " = true ]; then
137
+ ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${BUNDLE_V1_IMAGE} "
138
+ ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${BUNDLE_V1_DEP_IMAGE} "
139
+ ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${BUNDLE_V2_IMAGE} "
140
+ ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${BUNDLE_V2_DEP_IMAGE} "
141
+ ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${INDEX_V1} "
142
+ ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${INDEX_V2} "
143
+ ${KIND} load docker-image --name=" ${KIND_CLUSTER_NAME} " " ${TEST_CATALOG_IMAGE} "
144
+ fi
145
+
146
+ # Assumes images are already built
147
147
if [ " ${SAVE} " = true ]; then
148
148
${CONTAINER_RUNTIME} save " ${BUNDLE_V1_IMAGE} " | gzip > bundlev1.tar.gz
149
149
${CONTAINER_RUNTIME} save " ${BUNDLE_V1_DEP_IMAGE} " | gzip > bundlev1dep.tar.gz
@@ -157,6 +157,7 @@ if [ "${SAVE}" = true ]; then
157
157
${CONTAINER_RUNTIME} save " ${TEST_CATALOG_IMAGE} " | gzip > testcatalog.tar.gz
158
158
fi
159
159
160
+ # Assumes images are already built
160
161
if [ " $PUSH " = true ]; then
161
162
# push bundles
162
163
${CONTAINER_RUNTIME} push " ${BUNDLE_V1_IMAGE} "
0 commit comments