Skip to content

Commit

Permalink
fixup! Update to go 1.22
Browse files Browse the repository at this point in the history
Signed-off-by: Todd Short <tshort@redhat.com>
  • Loading branch information
tmshort committed Jun 5, 2024
1 parent 2dcf6ca commit 8eba808
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion test/extension-developer-e2e/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}" \
Expand Down

0 comments on commit 8eba808

Please sign in to comment.