@@ -101,7 +101,7 @@ test: manifests generate fmt vet setup-envtest ## Run tests.
101101# The default setup assumes Kind is pre-installed and builds/loads the Manager Docker image locally.
102102# CertManager is installed by default; skip with:
103103# - CERT_MANAGER_INSTALL_SKIP=true
104- KIND_CLUSTER ?= k8s-debug-mode-cr -lib-test-e2e
104+ KIND_CLUSTER ?= k8s-backup -lib-test-e2e
105105
106106.PHONY : setup-test-e2e
107107setup-test-e2e : # # Set up a Kind cluster for e2e tests if it does not exist
@@ -159,23 +159,6 @@ docker-build: ## Build docker image with the manager.
159159docker-push : # # Push docker image with the manager.
160160 $(CONTAINER_TOOL ) push ${IMG}
161161
162- # PLATFORMS defines the target platforms for the manager image be built to provide support to multiple
163- # architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:
164- # - be able to use docker buildx. More info: https://docs.docker.com/build/buildx/
165- # - have enabled BuildKit. More info: https://docs.docker.com/develop/develop-images/build_enhancements/
166- # - be able to push the image to your registry (i.e. if you do not set a valid value via IMG=<myregistry/image:<tag>> then the export will fail)
167- # To adequately provide solutions that are compatible with multiple platforms, you should consider using this option.
168- PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
169- .PHONY : docker-buildx
170- docker-buildx : # # Build and push docker image for the manager for cross-platform support
171- # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
172- sed -e ' 1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
173- - $(CONTAINER_TOOL ) buildx create --name k8s-debug-mode-cr-lib-builder
174- $(CONTAINER_TOOL ) buildx use k8s-debug-mode-cr-lib-builder
175- - $(CONTAINER_TOOL ) buildx build --push --platform=$(PLATFORMS ) --tag ${IMG} -f Dockerfile.cross .
176- - $(CONTAINER_TOOL ) buildx rm k8s-debug-mode-cr-lib-builder
177- rm Dockerfile.cross
178-
179162.PHONY : build-installer
180163build-installer : manifests generate kustomize # # Generate a consolidated YAML with CRDs and deployment.
181164 mkdir -p dist
0 commit comments