Skip to content

Commit c9a102a

Browse files
committed
BOT: run 'make upgrade-klone' and 'make generate'
Signed-off-by: jetstack-bot <[email protected]>
1 parent e4e7106 commit c9a102a

File tree

3 files changed

+31
-16
lines changed

3 files changed

+31
-16
lines changed

klone.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,55 +9,55 @@ targets:
99
- folder_name: api-docs
1010
repo_url: https://github.com/cert-manager/makefile-modules.git
1111
repo_ref: main
12-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
12+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
1313
repo_path: modules/api-docs
1414
- folder_name: boilerplate
1515
repo_url: https://github.com/cert-manager/makefile-modules.git
1616
repo_ref: main
17-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
17+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
1818
repo_path: modules/boilerplate
1919
- folder_name: cert-manager
2020
repo_url: https://github.com/cert-manager/makefile-modules.git
2121
repo_ref: main
22-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
22+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
2323
repo_path: modules/cert-manager
2424
- folder_name: controller-gen
2525
repo_url: https://github.com/cert-manager/makefile-modules.git
2626
repo_ref: main
27-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
27+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
2828
repo_path: modules/controller-gen
2929
- folder_name: generate-verify
3030
repo_url: https://github.com/cert-manager/makefile-modules.git
3131
repo_ref: main
32-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
32+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
3333
repo_path: modules/generate-verify
3434
- folder_name: help
3535
repo_url: https://github.com/cert-manager/makefile-modules.git
3636
repo_ref: main
37-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
37+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
3838
repo_path: modules/help
3939
- folder_name: kind
4040
repo_url: https://github.com/cert-manager/makefile-modules.git
4141
repo_ref: main
42-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
42+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
4343
repo_path: modules/kind
4444
- folder_name: klone
4545
repo_url: https://github.com/cert-manager/makefile-modules.git
4646
repo_ref: main
47-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
47+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
4848
repo_path: modules/klone
4949
- folder_name: oci-image
5050
repo_url: https://github.com/cert-manager/makefile-modules.git
5151
repo_ref: main
52-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
52+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
5353
repo_path: modules/oci-image
5454
- folder_name: repository-base
5555
repo_url: https://github.com/cert-manager/makefile-modules.git
5656
repo_ref: main
57-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
57+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
5858
repo_path: modules/repository-base
5959
- folder_name: tools
6060
repo_url: https://github.com/cert-manager/makefile-modules.git
6161
repo_ref: main
62-
repo_hash: d3fbbe92ebeace2b369fdc51eb785b42fe39d1d9
62+
repo_hash: 1d93410ce1702a34917b72beb64dad24057b2139
6363
repo_path: modules/tools

make/_shared/help/help.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ done <<< "$raw_lines"
5454

5555
## 2. Build mapping for expanding targets
5656

57-
ASSIGNMENT_REGEX="^(([a-zA-Z0-9\_\/\%\$\(\)]|-)+)\s*:=\s*(.*)$"
57+
ASSIGNMENT_REGEX="^(([a-zA-Z0-9\_\/\%\$\(\)]|-)+)[[:space:]]*:=[[:space:]]*(.*)$"
5858

5959
raw_expansions=$(${MAKE} --dry-run --print-data-base noop | tr '\t' ' ' | grep -E "$ASSIGNMENT_REGEX")
6060
extracted_expansions=""

make/_shared/tools/00_mod.mk

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ $(bin_dir)/scratch/image $(bin_dir)/tools $(bin_dir)/downloaded $(bin_dir)/downl
2323

2424
checkhash_script := $(dir $(lastword $(MAKEFILE_LIST)))/util/checkhash.sh
2525

26+
for_each_kv = $(foreach item,$2,$(eval $(call $1,$(word 1,$(subst =, ,$(item))),$(word 2,$(subst =, ,$(item))))))
27+
2628
# To make sure we use the right version of each tool, we put symlink in
2729
# $(bin_dir)/tools, and the actual binaries are in $(bin_dir)/downloaded. When bumping
2830
# the version of the tools, this symlink gets updated.
@@ -101,7 +103,7 @@ TOOLS += goreleaser=v1.23.0
101103
# https://pkg.go.dev/github.com/anchore/syft/cmd/syft?tab=versions
102104
TOOLS += syft=v0.100.0
103105
# https://github.com/cert-manager/helm-tool
104-
TOOLS += helm-tool=v0.4.1
106+
TOOLS += helm-tool=v0.4.2
105107
# https://github.com/cert-manager/cmctl
106108
TOOLS += cmctl=2f75014a7c360c319f8c7c8afe8e9ce33fe26dca
107109
# https://pkg.go.dev/github.com/cert-manager/release/cmd/cmrel?tab=versions
@@ -307,17 +309,30 @@ GO_DEPENDENCIES += cmctl=github.com/cert-manager/cmctl/v2
307309
GO_DEPENDENCIES += cmrel=github.com/cert-manager/release/cmd/cmrel
308310
GO_DEPENDENCIES += golangci-lint=github.com/golangci/golangci-lint/cmd/golangci-lint
309311

312+
#################
313+
# go build tags #
314+
#################
315+
316+
GO_TAGS :=
317+
310318
# Additional Go dependencies can be defined to re-use the tooling in this file
311319
ADDITIONAL_GO_DEPENDENCIES ?=
320+
ADDITIONAL_GO_TAGS ?=
312321
GO_DEPENDENCIES += $(ADDITIONAL_GO_DEPENDENCIES)
322+
GO_TAGS += $(ADDITIONAL_GO_TAGS)
323+
324+
go_tags_init = go_tags_$1 :=
325+
$(call for_each_kv,go_tags_init,$(GO_DEPENDENCIES))
326+
327+
go_tags_defs = go_tags_$1 += $2
328+
$(call for_each_kv,go_tags_defs,$(GO_TAGS))
313329

314330
define go_dependency
315331
$$(bin_dir)/downloaded/tools/$1@$($(call UC,$1)_VERSION)_%: | $$(NEEDS_GO) $$(bin_dir)/downloaded/tools
316-
GOWORK=off GOBIN=$$(CURDIR)/$$(dir $$@) $$(GO) install $2@$($(call UC,$1)_VERSION)
332+
GOWORK=off GOBIN=$$(CURDIR)/$$(dir $$@) $$(GO) install --tags "$(strip $(go_tags_$1))" $2@$($(call UC,$1)_VERSION)
317333
@mv $$(CURDIR)/$$(dir $$@)/$1 $$@
318334
endef
319-
320-
$(foreach GO_DEPENDENCY,$(GO_DEPENDENCIES),$(eval $(call go_dependency,$(word 1,$(subst =, ,$(GO_DEPENDENCY))),$(word 2,$(subst =, ,$(GO_DEPENDENCY))))))
335+
$(call for_each_kv,go_dependency,$(GO_DEPENDENCIES))
321336

322337
########
323338
# Helm #

0 commit comments

Comments
 (0)