22# Image URL to use all building/pushing image targets
33IMG ?= controller:latest
44# ENVTEST_K8S_VERSION refers to the version of kubebuilder assets to be downloaded by envtest binary.
5- ENVTEST_K8S_VERSION = 1.27.1
5+ ENVTEST_K8S_VERSION = 1.28.0
66
77# Get the currently used golang install path (in GOPATH/bin, unless GOBIN is set)
88ifeq (,$(shell go env GOBIN) )
@@ -29,7 +29,7 @@ all: build
2929
3030# The help target prints out all targets with their descriptions organized
3131# beneath their categories. The categories are represented by '##@' and the
32- # target descriptions by '##'. The awk commands is responsible for reading the
32+ # target descriptions by '##'. The awk command is responsible for reading the
3333# entire set of makefiles included in this invocation, looking for lines of the
3434# file as xyz: ## something, and then pretty-format the target and help. Then,
3535# if there's a line with ##@ something, that gets pretty-printed as a category.
@@ -74,26 +74,26 @@ build: manifests generate fmt vet ## Build manager binary.
7474run : manifests generate fmt vet # # Run a controller from your host.
7575 go run ./cmd/main.go
7676
77- # If you wish built the manager image targeting other platforms you can use the --platform flag.
78- # (i.e. docker build --platform linux/arm64 ). However, you must enable docker buildKit for it.
77+ # If you wish to build the manager image targeting other platforms you can use the --platform flag.
78+ # (i.e. docker build --platform linux/arm64). However, you must enable docker buildKit for it.
7979# More info: https://docs.docker.com/develop/develop-images/build_enhancements/
8080.PHONY : docker-build
81- docker-build : test # # Build docker image with the manager.
81+ docker-build : # # Build docker image with the manager.
8282 $(CONTAINER_TOOL ) build -t ${IMG} .
8383
8484.PHONY : docker-push
8585docker-push : # # Push docker image with the manager.
8686 $(CONTAINER_TOOL ) push ${IMG}
8787
88- # PLATFORMS defines the target platforms for the manager image be build to provide support to multiple
88+ # PLATFORMS defines the target platforms for the manager image be built to provide support to multiple
8989# architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:
90- # - able to use docker buildx . More info: https://docs.docker.com/build/buildx/
91- # - have enable BuildKit, More info: https://docs.docker.com/develop/develop-images/build_enhancements/
92- # - be able to push the image for your registry (i.e. if you do not inform a valid value via IMG=<myregistry/image:<tag>> then the export will fail)
93- # To properly provided solutions that supports more than one platform you should use this option.
90+ # - be able to use docker buildx. More info: https://docs.docker.com/build/buildx/
91+ # - have enabled BuildKit. More info: https://docs.docker.com/develop/develop-images/build_enhancements/
92+ # - 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)
93+ # To adequately provide solutions that are compatible with multiple platforms, you should consider using this option.
9494PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
9595.PHONY : docker-buildx
96- docker-buildx : test # # Build and push docker image for the manager for cross-platform support
96+ docker-buildx : # # Build and push docker image for the manager for cross-platform support
9797 # copy existing Dockerfile and insert --platform=${BUILDPLATFORM} into Dockerfile.cross, and preserve the original Dockerfile
9898 sed -e ' 1 s/\(^FROM\)/FROM --platform=\$$\{BUILDPLATFORM\}/; t' -e ' 1,// s//FROM --platform=\$$\{BUILDPLATFORM\}/' Dockerfile > Dockerfile.cross
9999 - $(CONTAINER_TOOL ) buildx create --name project-v3-builder
@@ -139,8 +139,8 @@ CONTROLLER_GEN ?= $(LOCALBIN)/controller-gen
139139ENVTEST ?= $(LOCALBIN ) /setup-envtest
140140
141141# # Tool Versions
142- KUSTOMIZE_VERSION ?= v5.0 .1
143- CONTROLLER_TOOLS_VERSION ?= v0.12 .0
142+ KUSTOMIZE_VERSION ?= v5.1 .1
143+ CONTROLLER_TOOLS_VERSION ?= v0.13 .0
144144
145145.PHONY : kustomize
146146kustomize : $(KUSTOMIZE ) # # Download kustomize locally if necessary. If wrong version is installed, it will be removed before downloading.
0 commit comments