You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Validate that the internal registry is running in the OCP Cluster, configure the variable to be used in the make target.
@@ -177,4 +178,32 @@ spec:
177
178
timeout --foreground -v -s SIGHUP -k ${TIMEOUT}${TIMEOUT} bash -c 'until oc get IPAddressPool default -n metallb-system; do sleep 5; done && echo "The IP address pool has been created."'
178
179
179
180
echo"MetalLB has been deployed and configured with the IP address pool."
181
+
}
182
+
183
+
#need to change env variables since make deploy of sail-operator uses them
184
+
functionenv_save(){
185
+
INICIAL_NAMESPACE="$NAMESPACE"
186
+
INICIAL_HUB="$HUB"
187
+
INITIAL_TAG="$TAG"
188
+
}
189
+
functioncleanup_sail_repo() {
190
+
echo"Cleaning up..."
191
+
cd .. 2>/dev/null ||true
192
+
rm -rf sail-operator
193
+
export NAMESPACE="$INICIAL_NAMESPACE"
194
+
export HUB="$INICIAL_HUB"
195
+
export TAG="$INITIAL_TAG"
196
+
}
197
+
198
+
functiondeploy_operator(){
199
+
env_save
200
+
unset HUB
201
+
unset TAG
202
+
unset NAMESPACE
203
+
git clone --depth 1 --branch main $SAIL_REPO_URL|| { echo"Failed to clone sail-operator repo";exit 1; }
204
+
cd sail-operator
205
+
make deploy || { echo"sail-operator make deploy failed"; cleanup_sail_repo ;exit 1; }
Copy file name to clipboardExpand all lines: prow/setup/sail-operator-setup.sh
+13-11Lines changed: 13 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,7 @@
21
21
# Upstream WoW to call this script is documented in here: https://github.com/openshift-service-mesh/istio/tree/master/tests/integration#running-tests-on-custom-deployment
0 commit comments