Skip to content

Commit

Permalink
Pin the version of OLM we use for e2e tests (istio-ecosystem#450)
Browse files Browse the repository at this point in the history
The latest release does not work, but 0.28.0 does. I also added some
automation to update-deps to update the version.

Signed-off-by: Daniel Grimm <[email protected]>
  • Loading branch information
dgn authored Oct 25, 2024
1 parent b56c95d commit 2f18e52
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile.core.mk
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,7 @@ OPERATOR_SDK_VERSION ?= v1.37.0
HELM_VERSION ?= v3.16.2
CONTROLLER_TOOLS_VERSION ?= v0.16.4
OPM_VERSION ?= v1.47.0
OLM_VERSION ?= 0.28.0
GITLEAKS_VERSION ?= v8.21.1
ISTIOCTL_VERSION ?= 1.23.0

Expand Down
9 changes: 7 additions & 2 deletions tests/e2e/common-operator-integ-suite.sh
Original file line number Diff line number Diff line change
Expand Up @@ -241,9 +241,14 @@ if [ "${SKIP_BUILD}" == "false" ]; then
BUNDLE_IMG="${BUNDLE_IMG}" \
OPENSHIFT_PLATFORM=false \
make bundle bundle-build bundle-push

# Install OLM in the cluster because it's not available by default in kind.
${OPERATOR_SDK} olm install
OLM_INSTALL_ARGS=""
if [ "${OLM_VERSION}" != "" ]; then
OLM_INSTALL_ARGS+="--version ${OLM_VERSION}"
fi
# shellcheck disable=SC2086
${OPERATOR_SDK} olm install ${OLM_INSTALL_ARGS}

# Wait for for the CatalogSource to be CatalogSource.status.connectionState.lastObservedState == READY
${COMMAND} wait catalogsource operatorhubio-catalog -n olm --for 'jsonpath={.status.connectionState.lastObservedState}=READY' --timeout=5m
Expand Down
4 changes: 4 additions & 0 deletions tools/update_deps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ sed -i "s|CONTROLLER_TOOLS_VERSION ?= .*|CONTROLLER_TOOLS_VERSION ?= ${CONTROLLE
OPM_LATEST_VERSION=$(getLatestVersion operator-framework/operator-registry)
sed -i "s|OPM_VERSION ?= .*|OPM_VERSION ?= ${OPM_LATEST_VERSION}|" "${ROOTDIR}/Makefile.core.mk"

# Update olm
OLM_LATEST_VERSION=$(getLatestVersion operator-framework/operator-lifecycle-manager)
sed -i "s|OLM_VERSION ?= .*|OLM_VERSION ?= ${OLM_LATEST_VERSION}|" "${ROOTDIR}/Makefile.core.mk"

# Update kube-rbac-proxy
RBAC_PROXY_LATEST_VERSION=$(getLatestVersion brancz/kube-rbac-proxy | cut -d/ -f1)
# Only update it if the newer image is available in the registry
Expand Down

0 comments on commit 2f18e52

Please sign in to comment.