Skip to content

Commit 228168b

Browse files
Merge pull request openshift-service-mesh#156 from openshift-service-mesh-bot/none-main-merge_upstream_main-38a843ce
Automator: merge upstream changes to openshift-service-mesh/sail-operator@main
2 parents 9a174ec + bb68966 commit 228168b

File tree

4 files changed

+14
-3
lines changed

4 files changed

+14
-3
lines changed

Makefile.core.mk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -472,6 +472,7 @@ OPERATOR_SDK_VERSION ?= v1.37.0
472472
HELM_VERSION ?= v3.16.2
473473
CONTROLLER_TOOLS_VERSION ?= v0.16.4
474474
OPM_VERSION ?= v1.47.0
475+
OLM_VERSION ?= 0.28.0
475476
GITLEAKS_VERSION ?= v8.21.1
476477
ISTIOCTL_VERSION ?= 1.23.0
477478

tests/e2e/common-operator-integ-suite.sh

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff 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

tests/e2e/util/common/e2e_utils.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ var (
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
)

tools/update_deps.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,10 @@ sed -i "s|CONTROLLER_TOOLS_VERSION ?= .*|CONTROLLER_TOOLS_VERSION ?= ${CONTROLLE
5858
OPM_LATEST_VERSION=$(getLatestVersion operator-framework/operator-registry)
5959
sed -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
6266
RBAC_PROXY_LATEST_VERSION=$(getLatestVersion brancz/kube-rbac-proxy | cut -d/ -f1)
6367
# Only update it if the newer image is available in the registry

0 commit comments

Comments
 (0)