diff --git a/klone.yaml b/klone.yaml index 6420d15f..52a45a43 100644 --- a/klone.yaml +++ b/klone.yaml @@ -10,60 +10,60 @@ targets: - folder_name: api-docs repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/api-docs - folder_name: boilerplate repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/boilerplate - folder_name: cert-manager repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/cert-manager - folder_name: controller-gen repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/controller-gen - folder_name: generate-verify repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/generate-verify - folder_name: helm repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/helm - folder_name: help repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/help - folder_name: kind repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/kind - folder_name: klone repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/klone - folder_name: oci-image repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/oci-image - folder_name: repository-base repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/repository-base - folder_name: tools repo_url: https://github.com/cert-manager/makefile-modules.git repo_ref: main - repo_hash: 1539e50a1ea7d7c3f97ea37b3f9557971295acc1 + repo_hash: dc7ef9334aeec28a43345c1d89de5379c4c41562 repo_path: modules/tools diff --git a/make/_shared/oci-image/01_mod.mk b/make/_shared/oci-image/01_mod.mk index 0af914e5..0da51109 100644 --- a/make/_shared/oci-image/01_mod.mk +++ b/make/_shared/oci-image/01_mod.mk @@ -12,7 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. -oci_platforms := linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le +oci_platforms ?= linux/amd64,linux/arm/v7,linux/arm64,linux/ppc64le # Use distroless as minimal base image to package the manager binary # Refer to https://github.com/GoogleContainerTools/distroless for more details diff --git a/make/_shared/tools/00_mod.mk b/make/_shared/tools/00_mod.mk index d7c6a7a1..7ff3c9d5 100644 --- a/make/_shared/tools/00_mod.mk +++ b/make/_shared/tools/00_mod.mk @@ -109,6 +109,10 @@ KUBEBUILDER_ASSETS_VERSION=1.28.3 TOOLS += etcd=$(KUBEBUILDER_ASSETS_VERSION) TOOLS += kube-apiserver=$(KUBEBUILDER_ASSETS_VERSION) +# Additional tools can be defined to reuse the tooling in this file +ADDITIONAL_TOOLS ?= +TOOLS += $(ADDITIONAL_TOOLS) + # https://go.dev/dl/ VENDORED_GO_VERSION := 1.21.6 @@ -280,6 +284,10 @@ GO_DEPENDENCIES += defaulter-gen=k8s.io/code-generator/cmd/defaulter-gen GO_DEPENDENCIES += conversion-gen=k8s.io/code-generator/cmd/conversion-gen GO_DEPENDENCIES += helm-tool=github.com/cert-manager/helm-tool +# Additional Go dependencies can be defined to re-use the tooling in this file +ADDITIONAL_GO_DEPENDENCIES ?= +GO_DEPENDENCIES += $(ADDITIONAL_GO_DEPENDENCIES) + define go_dependency $$(bin_dir)/downloaded/tools/$1@$($(call UC,$1)_VERSION)_%: | $$(NEEDS_GO) $$(bin_dir)/downloaded/tools GOWORK=off GOBIN=$$(CURDIR)/$$(dir $$@) $$(GO) install $2@$($(call UC,$1)_VERSION)