Skip to content

Commit

Permalink
BOT: run 'make upgrade-klone' and 'make generate'
Browse files Browse the repository at this point in the history
Signed-off-by: jetstack-bot <jetstack-bot@users.noreply.github.com>
  • Loading branch information
jetstack-bot committed Jan 15, 2024
1 parent a50e491 commit 4759198
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 29 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ endif
##################################

VERSION ?= $(shell git describe --tags --always --match='v*' --abbrev=14 --dirty)
IS_PRERELEASE := $(shell git describe --tags --always --match='v*' --abbrev=0 | grep -q '-' && echo true || echo false)
GITCOMMIT := $(shell git rev-parse HEAD)
GITEPOCH := $(shell git show -s --format=%ct HEAD)

Expand Down
14 changes: 7 additions & 7 deletions klone.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,35 @@ targets:
- folder_name: boilerplate
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 170011a316b4243134effad30cbc415a331baa97
repo_hash: dabb8b9a0aaef14b0c600c7d8453dcddd6322fde
repo_path: modules/boilerplate
- folder_name: generate-verify
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 170011a316b4243134effad30cbc415a331baa97
repo_hash: dabb8b9a0aaef14b0c600c7d8453dcddd6322fde
repo_path: modules/generate-verify
- folder_name: help
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 170011a316b4243134effad30cbc415a331baa97
repo_hash: dabb8b9a0aaef14b0c600c7d8453dcddd6322fde
repo_path: modules/help
- folder_name: klone
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 170011a316b4243134effad30cbc415a331baa97
repo_hash: dabb8b9a0aaef14b0c600c7d8453dcddd6322fde
repo_path: modules/klone
- folder_name: oci-image
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 170011a316b4243134effad30cbc415a331baa97
repo_hash: dabb8b9a0aaef14b0c600c7d8453dcddd6322fde
repo_path: modules/oci-image
- folder_name: repository-base
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 170011a316b4243134effad30cbc415a331baa97
repo_hash: dabb8b9a0aaef14b0c600c7d8453dcddd6322fde
repo_path: modules/repository-base
- folder_name: tools
repo_url: https://github.com/cert-manager/makefile-modules.git
repo_ref: main
repo_hash: 170011a316b4243134effad30cbc415a331baa97
repo_hash: dabb8b9a0aaef14b0c600c7d8453dcddd6322fde
repo_path: modules/tools
17 changes: 0 additions & 17 deletions make/_shared/generate-verify/01_mod.mk

This file was deleted.

8 changes: 4 additions & 4 deletions make/_shared/help/help.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ CATEGORY_COLOR="$(tput setaf 3)"
CLEAR_STYLE="$(tput sgr0)"
PURPLE=$(tput setaf 125)

EMPTYLINE_REGEX="^\s*$"
DOCBLOCK_REGEX="^##\s*(.*)$"
CATEGORY_REGEX="^##\s*@category\s*(.*)$"
TARGET_REGEX="^([a-zA-Z0-9\_\/\%\$\-\(\)]+):.*$"
EMPTYLINE_REGEX="^[[:space:]]*$"
DOCBLOCK_REGEX="^##[[:space:]]*(.*)$"
CATEGORY_REGEX="^##[[:space:]]*@category[[:space:]]*(.*)$"
TARGET_REGEX="^(([a-zA-Z0-9\_\/\%\$\(\)]|-)+):.*$"

EMPTY_ITEM="<start-category><end-category><start-target><end-target><start-comment><end-comment>"

Expand Down
1 change: 1 addition & 0 deletions make/_shared/repository-base/base/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ endif
##################################

VERSION ?= $(shell git describe --tags --always --match='v*' --abbrev=14 --dirty)
IS_PRERELEASE := $(shell git describe --tags --always --match='v*' --abbrev=0 | grep -q '-' && echo true || echo false)
GITCOMMIT := $(shell git rev-parse HEAD)
GITEPOCH := $(shell git show -s --format=%ct HEAD)

Expand Down
8 changes: 7 additions & 1 deletion make/_shared/tools/00_mod.mk
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ TOOLS += oras=v1.1.0
TOOLS += ginkgo=$(shell [[ -f go.mod ]] && awk '/ginkgo\/v2/ {print $$2}' go.mod || echo "v2.13.2")
# https://pkg.go.dev/github.com/cert-manager/klone?tab=versions
TOOLS += klone=v0.0.3
# https://pkg.go.dev/github.com/goreleaser/goreleaser?tab=versions
TOOLS += goreleaser=v1.23.0
# https://pkg.go.dev/github.com/anchore/syft/cmd/syft?tab=versions
TOOLS += syft=v0.100.0

# https://pkg.go.dev/k8s.io/code-generator/cmd?tab=versions
K8S_CODEGEN_VERSION=v0.29.0
Expand All @@ -100,7 +104,7 @@ TOOLS += etcd=$(KUBEBUILDER_ASSETS_VERSION)
TOOLS += kube-apiserver=$(KUBEBUILDER_ASSETS_VERSION)

# https://go.dev/dl/
VENDORED_GO_VERSION := 1.21.5
VENDORED_GO_VERSION := 1.21.6

# Print the go version which can be used in GH actions
.PHONY: print-go-version
Expand Down Expand Up @@ -262,6 +266,8 @@ GO_DEPENDENCIES += boilersuite=github.com/cert-manager/boilersuite
GO_DEPENDENCIES += gomarkdoc=github.com/princjef/gomarkdoc/cmd/gomarkdoc
GO_DEPENDENCIES += oras=oras.land/oras/cmd/oras
GO_DEPENDENCIES += klone=github.com/cert-manager/klone
GO_DEPENDENCIES += goreleaser=github.com/goreleaser/goreleaser
GO_DEPENDENCIES += syft=github.com/anchore/syft/cmd/syft

define go_dependency
$$(bin_dir)/downloaded/tools/$1@$($(call UC,$1)_VERSION)_%: | $$(NEEDS_GO) $$(bin_dir)/downloaded/tools
Expand Down

0 comments on commit 4759198

Please sign in to comment.