From 261190acdc1d065c96272ad9ed29d86d39905931 Mon Sep 17 00:00:00 2001 From: John Mazzitelli Date: Mon, 30 Oct 2023 08:52:51 -0400 Subject: [PATCH] check that the plugin image (version the same as the server) is published on quay --- hack/smoke-test-release-branch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/hack/smoke-test-release-branch.sh b/hack/smoke-test-release-branch.sh index 94232a9..d290c2b 100755 --- a/hack/smoke-test-release-branch.sh +++ b/hack/smoke-test-release-branch.sh @@ -176,6 +176,7 @@ fi # Determine the version we are going to smoke test OPERATOR_VERSION="$(ls -1 docs/kiali-operator-*.tgz | sort | tail -n1 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')" SERVER_VERSION="$(ls -1 docs/kiali-server-*.tgz | sort | tail -n1 | grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')" +OSSMC_VERSION="${SERVER_VERSION}" if [ "${OPERATOR_VERSION}" != "${SERVER_VERSION}" ]; then abort_now "The latest helm chart versions for operator [${OPERATOR_VERSION}] and server [${SERVER_VERSION}] do not match. Aborting the test." @@ -239,6 +240,13 @@ if ! ${HELM_EXE} uninstall --namespace ${SERVER_NAMESPACE} kiali-server; then abort_now "The Server Helm Chart was unable to perform an uninstall successfully. The smoke test has FAILED!" fi +# SMOKE TESTING THAT THE OSSMC IMAGE IS ON QUAY.IO + +EXPECTED_OSSMC_IMAGE="quay.io/kiali/ossmconsole:v${OSSMC_VERSION}" +if ! docker pull ${EXPECTED_OSSMC_IMAGE} &>/dev/null ; then + abort_now "The OSSMC image is not published on quay.io. This is missing: [${EXPECTED_OSSMC_IMAGE}]. The smoke test has FAILED!" +fi + # SMOKE TESTING IS COMPLETE infomsg "========================="