From bf07237df7b7cfe033aa31928c6876e6594a8dc1 Mon Sep 17 00:00:00 2001 From: Ahmed Kadri Date: Thu, 16 May 2024 19:08:42 +0200 Subject: [PATCH] Update Helm binary --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 0cb146b79..b3554ebf9 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ IMG_NAME ?= cluster-api-virtual-controller IMG_URL ?= gcr.io/spectro-common-dev/${USER}/cluster-api-virtual IMG_TAG ?= v0.1.3-spectro-${BUILD_DATE} IMG ?= $(IMG_URL)/$(IMG_NAME):$(IMG_TAG) -BUILD_ARGS = --build-arg CRYPTO_LIB=${FIPS_ENABLE} --build-arg BUILDER_GOLANG_VERSION=${BUILDER_GOLANG_VERSION} --build-arg BUILDER_3RDPARTY_VERSION=${BUILDER_3RDPARTY_VERSION} --platform linux/${TARGETARCH} +BUILD_ARGS = --build-arg CRYPTO_LIB=${FIPS_ENABLE} --build-arg BUILDER_GOLANG_VERSION=${BUILDER_GOLANG_VERSION} --build-arg BUILDER_3RDPARTY_VERSION=${BUILDER_3RDPARTY_VERSION} # ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary. ENVTEST_K8S_VERSION = 1.23 @@ -95,7 +95,7 @@ run: manifests generate fmt vet ## Run a controller from your host. .PHONY: docker-build docker-build: binaries ## Build docker image with the manager. - docker build ${BUILD_ARGS} -t ${IMG} . + docker build --platform linux/${TARGETARCH} ${BUILD_ARGS} -t ${IMG} . .PHONY: docker-push docker-push: ## Push docker image with the manager.