@@ -194,7 +194,7 @@ cluster/prepare/project:
194194OPERATOR_SDK = $(PROJECT_PATH ) /bin/operator-sdk
195195# Note: release file patterns changed after v1.2.0
196196# More info https://sdk.operatorframework.io/docs/installation/
197- OPERATOR_SDK_VERSION =v1.28 .1
197+ OPERATOR_SDK_VERSION =v1.36 .1
198198$(OPERATOR_SDK ) :
199199 curl -sSL https://github.com/operator-framework/operator-sdk/releases/download/$(OPERATOR_SDK_VERSION ) /operator-sdk_$(OS ) _$(ARCH ) -o $(OPERATOR_SDK )
200200 chmod +x $(OPERATOR_SDK )
@@ -284,14 +284,11 @@ docker-build-only:
284284# To properly provided solutions that supports more than one platform you should use this option.
285285PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
286286.PHONY : docker-buildx
287- docker-buildx : test # # Build and push docker image for the manager for cross-platform support
288- # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
289- sed -e ' 1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
287+ docker-buildx : # # Build and push docker image for the manager for cross-platform support
290288 - docker buildx create --name project-v3-builder
291289 docker buildx use project-v3-builder
292- - docker buildx build --push --platform=$(PLATFORMS ) --tag ${IMG} -f Dockerfile.cross
290+ - docker buildx build --push --platform=$(PLATFORMS ) --tag ${IMG} -f Dockerfile .
293291 - docker buildx rm project-v3-builder
294- rm Dockerfile.cross
295292
296293# Push the operator docker image
297294.PHONY : operator-image-push
0 commit comments