diff --git a/test/extension-developer-e2e/setup.sh b/test/extension-developer-e2e/setup.sh index 0f11519f..77677045 100755 --- a/test/extension-developer-e2e/setup.sh +++ b/test/extension-developer-e2e/setup.sh @@ -72,10 +72,18 @@ reg_pkg_name="${REG_PKG_NAME}" # and build + load images ######################################## +# controller-gen v0.13.0 (scaffolded by operator-sdk) panics when run with +# go 1.22, so pin to a more recent version. +# NOTE: This is a rough edge that users will experience + +# The Makefile in the project scaffolded by operator-sdk uses an SDK binary +# in the path path if it is present. Override via `export` to ensure we use +# the same version that we scaffolded with. +# NOTE: this is a rough edge that users will experience + ( cd "${REG_DIR}" && \ $operator_sdk init --domain="${DOMAIN}" && \ - sed -i -e 's/CONTROLLER_TOOLS_VERSION ?= v0.14.0/CONTROLLER_TOOLS_VERSION ?= v0.15.0/' Makefile && \ sed -i -e 's/CONTROLLER_TOOLS_VERSION ?= v0.13.0/CONTROLLER_TOOLS_VERSION ?= v0.15.0/' Makefile && \ $operator_sdk create api \ --group="${DOMAIN}" \