Skip to content

Commit c34d1dd

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

File tree

3 files changed

+21
-10
lines changed

3 files changed

+21
-10
lines changed

klone.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,40 @@ targets:
1010
- folder_name: boilerplate
1111
repo_url: https://github.com/cert-manager/makefile-modules.git
1212
repo_ref: main
13-
repo_hash: edeba4963e470a9f5e55ab1947aa15f5bdb2a2c3
13+
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
1414
repo_path: modules/boilerplate
1515
- folder_name: cert-manager
1616
repo_url: https://github.com/cert-manager/makefile-modules.git
1717
repo_ref: main
18-
repo_hash: edeba4963e470a9f5e55ab1947aa15f5bdb2a2c3
18+
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
1919
repo_path: modules/cert-manager
2020
- folder_name: executable
2121
repo_url: https://github.com/cert-manager/makefile-modules.git
2222
repo_ref: main
23-
repo_hash: edeba4963e470a9f5e55ab1947aa15f5bdb2a2c3
23+
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
2424
repo_path: modules/executable
2525
- folder_name: generate-verify
2626
repo_url: https://github.com/cert-manager/makefile-modules.git
2727
repo_ref: main
28-
repo_hash: edeba4963e470a9f5e55ab1947aa15f5bdb2a2c3
28+
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
2929
repo_path: modules/generate-verify
3030
- folder_name: help
3131
repo_url: https://github.com/cert-manager/makefile-modules.git
3232
repo_ref: main
33-
repo_hash: edeba4963e470a9f5e55ab1947aa15f5bdb2a2c3
33+
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
3434
repo_path: modules/help
3535
- folder_name: klone
3636
repo_url: https://github.com/cert-manager/makefile-modules.git
3737
repo_ref: main
38-
repo_hash: edeba4963e470a9f5e55ab1947aa15f5bdb2a2c3
38+
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
3939
repo_path: modules/klone
4040
- folder_name: repository-base
4141
repo_url: https://github.com/cert-manager/makefile-modules.git
4242
repo_ref: main
43-
repo_hash: edeba4963e470a9f5e55ab1947aa15f5bdb2a2c3
43+
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
4444
repo_path: modules/repository-base
4545
- folder_name: tools
4646
repo_url: https://github.com/cert-manager/makefile-modules.git
4747
repo_ref: main
48-
repo_hash: edeba4963e470a9f5e55ab1947aa15f5bdb2a2c3
48+
repo_hash: 43dfc77ac0dc7b08fbeddef87a153b40b364929b
4949
repo_path: modules/tools

make/_shared/executable/01_mod.mk

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
exe_platforms := all
15+
exe_operating_systems ?= darwin,linux,windows
16+
exe_architectures ?= amd64,arm,arm64,ppc64le,s390x
1617

1718
ifndef bin_dir
1819
$(error bin_dir is not set)
@@ -110,7 +111,9 @@ define template_for_target
110111
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[0] = "-s")' | \
111112
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[1] = "-w")' | \
112113
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .ldflags[2] = "$(go_$(1)_ldflags)")' | \
113-
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .gobinary = "$(GO)")' |
114+
$(YQ) 'with(.builds[]; select(.id == "$(1)") | .gobinary = "$(GO)")' | \
115+
os=$(exe_operating_systems) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .goos = (env(os) | split(",")))' | \
116+
archs=$(exe_architectures) $(YQ) 'with(.builds[]; select(.id == "$(1)") | .goarch = (env(archs) | split(",")))' |
114117
endef
115118

116119
## Build the go source for release. This will build the source

make/_shared/tools/00_mod.mk

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,10 @@ KUBEBUILDER_ASSETS_VERSION=1.28.3
109109
TOOLS += etcd=$(KUBEBUILDER_ASSETS_VERSION)
110110
TOOLS += kube-apiserver=$(KUBEBUILDER_ASSETS_VERSION)
111111

112+
# Additional tools can be defined to reuse the tooling in this file
113+
ADDITIONAL_TOOLS ?=
114+
TOOLS += $(ADDITIONAL_TOOLS)
115+
112116
# https://go.dev/dl/
113117
VENDORED_GO_VERSION := 1.21.6
114118

@@ -280,6 +284,10 @@ GO_DEPENDENCIES += defaulter-gen=k8s.io/code-generator/cmd/defaulter-gen
280284
GO_DEPENDENCIES += conversion-gen=k8s.io/code-generator/cmd/conversion-gen
281285
GO_DEPENDENCIES += helm-tool=github.com/cert-manager/helm-tool
282286

287+
# Additional Go dependencies can be defined to re-use the tooling in this file
288+
ADDITIONAL_GO_DEPENDENCIES ?=
289+
GO_DEPENDENCIES += $(ADDITIONAL_GO_DEPENDENCIES)
290+
283291
define go_dependency
284292
$$(bin_dir)/downloaded/tools/$1@$($(call UC,$1)_VERSION)_%: | $$(NEEDS_GO) $$(bin_dir)/downloaded/tools
285293
GOWORK=off GOBIN=$$(CURDIR)/$$(dir $$@) $$(GO) install $2@$($(call UC,$1)_VERSION)

0 commit comments

Comments
 (0)