From 4f3e20b9db16cbf0b3b0e2a6b79d93f8df0da5f0 Mon Sep 17 00:00:00 2001 From: Eddy Filip Date: Mon, 25 Mar 2024 13:59:22 +0100 Subject: [PATCH] Upgrade Operator SDK to v1.34.1 This upgrade fixes building multi-arch images from Makefile --- Makefile | 7 ++----- version/version.go | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index d273d932..070c6d99 100644 --- a/Makefile +++ b/Makefile @@ -146,14 +146,11 @@ docker-push: ## Push docker image with the manager. # To properly provided solutions that supports more than one platform you should use this option. PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le .PHONY: docker-buildx -docker-buildx: test ## Build and push docker image for the manager for cross-platform support - # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile - sed -e '1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross +docker-buildx: ## Build and push docker image for the manager for cross-platform support - $(CONTAINER_TOOL) buildx create --name project-v3-builder $(CONTAINER_TOOL) buildx use project-v3-builder - - $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile.cross . + - $(CONTAINER_TOOL) buildx build --push --platform=$(PLATFORMS) --tag ${IMG} -f Dockerfile . - $(CONTAINER_TOOL) buildx rm project-v3-builder - rm Dockerfile.cross ##@ Deployment diff --git a/version/version.go b/version/version.go index 61bbed6a..3557c0f5 100644 --- a/version/version.go +++ b/version/version.go @@ -2,5 +2,5 @@ package version var ( OperatorVersion = "1.8.1" - OperatorSDKVersion = "1.33.0" + OperatorSDKVersion = "1.34.1" )