From 6be6ed06e1c9a8d50c944d383f434f3a7c33245e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miko=C5=82aj=20=C5=9Awi=C4=85tek?= Date: Tue, 10 Dec 2024 17:32:09 +0000 Subject: [PATCH] Update tools using renovate (#3527) * Add renovate.json (cherry picked from commit e94086079a1229a8005574108273efe18a47a972) * Update tools in the Makefile using renovate (cherry picked from commit 14d196f7f15892892ca38723ee82340d353ef688) --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- Makefile | 5 +++++ renovate.json | 24 ++++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 renovate.json diff --git a/Makefile b/Makefile index 8212a91dd7..e7908aaff5 100644 --- a/Makefile +++ b/Makefile @@ -491,10 +491,15 @@ CHLOGGEN ?= $(LOCALBIN)/chloggen GOLANGCI_LINT ?= $(LOCALBIN)/golangci-lint CHAINSAW ?= $(LOCALBIN)/chainsaw +# renovate: datasource=go depName=sigs.k8s.io/kustomize/kustomize/v5 KUSTOMIZE_VERSION ?= v5.0.3 +# renovate: datasource=go depName=sigs.k8s.io/controller-tools/cmd/controller-gen CONTROLLER_TOOLS_VERSION ?= v0.16.1 +# renovate: datasource=go depName=github.com/golangci/golangci-lint/cmd/golangci-lint GOLANGCI_LINT_VERSION ?= v1.57.2 +# renovate: datasource=go depName=sigs.k8s.io/kind KIND_VERSION ?= v0.20.0 +# renovate: datasource=go depName=github.com/kyverno/chainsaw CHAINSAW_VERSION ?= v0.2.8 .PHONY: install-tools diff --git a/renovate.json b/renovate.json new file mode 100644 index 0000000000..ab1dcf6c50 --- /dev/null +++ b/renovate.json @@ -0,0 +1,24 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "labels": ["dependencies"], + "enabledManagers": ["regex"], + "customManagers": [ + { + "customType": "regex", + "description" : "Update tool versions in the Makefile", + "fileMatch": [ + "(^|/)Makefile$" + ], + "matchStrings": [ + "# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (?:packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?(?: registryUrl=(?[^\\s]+?))?\\s+[A-Za-z0-9_]+?_VERSION\\s*:*\\??=\\s*[\"']?(?.+?)[\"']?\\s" + ] + } + ], + "packageRules": [ + { + "matchManagers": ["regex"], + "matchFileNames": ["Makefile"], + "commitMessageTopic": "tool {{depName}}" + } + ] +}