Skip to content

Commit

Permalink
Merge pull request #1883 from kube-logging/fix/renovate
Browse files Browse the repository at this point in the history
feat: upgrade renovate config
  • Loading branch information
csatib02 authored Dec 17, 2024
2 parents 23d4606 + 9f217dd commit 7855f88
Show file tree
Hide file tree
Showing 2 changed files with 92 additions and 25 deletions.
33 changes: 25 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# A Self-Documenting Makefile: http://marmelab.com/blog/2016/02/29/auto-documented-makefile.html

####
## Dependency versions
####

# renovate: datasource=github-releases depName=kubernetes-sigs/controller-tools versioning=semver
CONTROLLER_GEN_VERSION := v0.16.3

# renovate: datasource=github-releases depName=golangci/golangci-lint versioning=semver
GOLANGCI_LINT_VERSION := v1.61.0

# renovate: datasource=github-releases depName=norwoodj/helm-docs versioning=semver
HELM_DOCS_VERSION = 1.11.0

# renovate: datasource=github-releases depName=kubernetes-sigs/kind versioning=semver
KIND_VERSION ?= v0.24.0

# renovate: datasource=github-releases depName=kubernetes-sigs/kubebuilder versioning=semver
KUBEBUILDER_VERSION = v3.1.0

# renovate: datasource=go depName=github.com/goph/licensei versioning=semver
LICENSEI_VERSION = v0.9.0

# renovate: datasource=go depName=github.com/stern/stern versioning=semver
STERN_VERSION := 1.25.0

BIN := ${PWD}/bin

export PATH := $(BIN):$(PATH)
Expand All @@ -26,31 +51,23 @@ E2E_TEST_TIMEOUT ?= 20m
TEST_COV_DIR := $(shell mkdir -p build/_test_coverage && realpath build/_test_coverage)

CONTROLLER_GEN := ${BIN}/controller-gen
CONTROLLER_GEN_VERSION := v0.16.3

ENVTEST_BIN_DIR := ${BIN}/envtest
ENVTEST_K8S_VERSION := 1.31.0
ENVTEST_BINARY_ASSETS := ${ENVTEST_BIN_DIR}/bin

GOLANGCI_LINT := ${BIN}/golangci-lint
GOLANGCI_LINT_VERSION := v1.61.0
LINTER_FLAGS := --timeout 10m

HELM_DOCS := ${BIN}/helm-docs
HELM_DOCS_VERSION = 1.11.0

KIND := ${BIN}/kind
KIND_VERSION ?= v0.24.0
KIND_IMAGE ?= kindest/node:v1.31.0@sha256:53df588e04085fd41ae12de0c3fe4c72f7013bba32a20e7325357a1ac94ba865
KIND_CLUSTER := kind

KUBEBUILDER := ${BIN}/kubebuilder
KUBEBUILDER_VERSION = v3.1.0

LICENSEI := ${BIN}/licensei
LICENSEI_VERSION = v0.9.0

STERN_VERSION := 1.25.0

SETUP_ENVTEST := ${BIN}/setup-envtest

Expand Down
84 changes: 67 additions & 17 deletions renovate.json
Original file line number Diff line number Diff line change
@@ -1,36 +1,86 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base",
"config:recommended",
"helpers:pinGitHubActionDigestsToSemver",
":semanticCommitTypeAll(chore)",
"schedule:daily",
"group:all"
],
"automerge": true,
"major": {
"automerge": false
},
"gomodTidy": true,
"requiredStatusChecks": null,
"postUpdateOptions": [
"gomodTidy"
],
"configMigration": true,
"constraints": {
"go": "1.23"
},
"labels": ["dependencies"],
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"^Makefile$"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>.*?) depName=(?<depName>.*?)( versioning=(?<versioning>.*?))?( registryUrl=(?<registryUrl>.*?))?\\s.*?_VERSION\\s?:?=\\s?(?<currentValue>.*)\\s"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}",
"description": [
"Custom dependency manager for updating tools defined in Makefiles."
]
}
],
"enabled": true,
"enabledManagers": [
"custom.regex",
"dockerfile",
"github-actions",
"gomod",
"helm-values",
"helmv3",
"kubernetes",
"kustomize",
"asdf"
],
"labels": [
"dependencies"
],
"osvVulnerabilityAlerts": true,
"packageRules": [
{
"matchPackageNames": ["k8s.io/client-go"],
"matchPackageNames": [
"k8s.io/client-go"
],
"allowedVersions": "/^v[0-9]+\\.[0-9]+\\.[0-9]+(\\.[0-9]+)?$/"
},
{
"matchUpdateTypes": ["major"],
"matchUpdateTypes": [
"major"
],
"enabled": false
},
{
"matchUpdateTypes": ["minor"],
"matchPackagePrefixes": ["k8s.io"],
"stabilityDays": 60
"matchUpdateTypes": [
"minor"
],
"minimumReleaseAge": "60 days",
"matchPackageNames": [
"k8s.io{/,}**"
]
},
{
"matchFileNames": [
"Makefile"
],
"extractVersion": "^v(?<version>.*)$",
"description": [
"Add build label to PRs which are related to build tools defined in Makefiles.",
"Group Makefile dependency updates in single PR."
]
}
]
],
"postUpdateOptions": [
"gomodTidy",
"gomodUpdateImportPaths"
],
"printConfig": false,
"rebaseWhen": "behind-base-branch",
"semanticCommits": "enabled",
"timezone": "Etc/UTC"
}

0 comments on commit 7855f88

Please sign in to comment.