File tree Expand file tree Collapse file tree 4 files changed +14
-3
lines changed
Expand file tree Collapse file tree 4 files changed +14
-3
lines changed Original file line number Diff line number Diff line change @@ -472,6 +472,7 @@ OPERATOR_SDK_VERSION ?= v1.37.0
472472HELM_VERSION ?= v3.16.2
473473CONTROLLER_TOOLS_VERSION ?= v0.16.4
474474OPM_VERSION ?= v1.47.0
475+ OLM_VERSION ?= 0.28.0
475476GITLEAKS_VERSION ?= v8.21.1
476477ISTIOCTL_VERSION ?= 1.23.0
477478
Original file line number Diff line number Diff line change @@ -241,9 +241,14 @@ if [ "${SKIP_BUILD}" == "false" ]; then
241241 BUNDLE_IMG=" ${BUNDLE_IMG} " \
242242 OPENSHIFT_PLATFORM=false \
243243 make bundle bundle-build bundle-push
244-
244+
245245 # Install OLM in the cluster because it's not available by default in kind.
246- ${OPERATOR_SDK} olm install
246+ OLM_INSTALL_ARGS=" "
247+ if [ " ${OLM_VERSION} " != " " ]; then
248+ OLM_INSTALL_ARGS+=" --version ${OLM_VERSION} "
249+ fi
250+ # shellcheck disable=SC2086
251+ ${OPERATOR_SDK} olm install ${OLM_INSTALL_ARGS}
247252
248253 # Wait for for the CatalogSource to be CatalogSource.status.connectionState.lastObservedState == READY
249254 ${COMMAND} wait catalogsource operatorhubio-catalog -n olm --for ' jsonpath={.status.connectionState.lastObservedState}=READY' --timeout=5m
Original file line number Diff line number Diff line change 5555 // - 1.22.2
5656 // - 1.23.0-rc.1
5757 // - 1.24-alpha.feabc1234
58- istiodVersionRegex = regexp .MustCompile (`Version:"([^"]*)"` )
58+ // matching only the version before first '_' which is used in the downstream builds, e.g. "1.23.2_ossm_tp.2"
59+ istiodVersionRegex = regexp .MustCompile (`Version:"([^"_]*)[^"]*"` )
5960
6061 k = kubectl .New ()
6162)
Original file line number Diff line number Diff line change @@ -58,6 +58,10 @@ sed -i "s|CONTROLLER_TOOLS_VERSION ?= .*|CONTROLLER_TOOLS_VERSION ?= ${CONTROLLE
5858OPM_LATEST_VERSION=$( getLatestVersion operator-framework/operator-registry)
5959sed -i " s|OPM_VERSION ?= .*|OPM_VERSION ?= ${OPM_LATEST_VERSION} |" " ${ROOTDIR} /Makefile.core.mk"
6060
61+ # Update olm
62+ OLM_LATEST_VERSION=$( getLatestVersion operator-framework/operator-lifecycle-manager)
63+ sed -i " s|OLM_VERSION ?= .*|OLM_VERSION ?= ${OLM_LATEST_VERSION} |" " ${ROOTDIR} /Makefile.core.mk"
64+
6165# Update kube-rbac-proxy
6266RBAC_PROXY_LATEST_VERSION=$( getLatestVersion brancz/kube-rbac-proxy | cut -d/ -f1)
6367# Only update it if the newer image is available in the registry
You can’t perform that action at this time.
0 commit comments