Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🤖: migrate renovate config #108

Merged
merged 2 commits into from
Oct 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
213 changes: 111 additions & 102 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
@@ -1,135 +1,144 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
extends: [
'config:recommended',
],
"dependencyDashboard": true,
"postUpdateOptions": [
"gomodTidy"
dependencyDashboard: true,
postUpdateOptions: [
'gomodTidy',
],
"labels": [
"kind/upgrade"
labels: [
'kind/upgrade',
],
"separateMinorPatch": true,
"commitMessagePrefix": "\uD83E\uDD16 ",
"customManagers": [
separateMinorPatch: true,
commitMessagePrefix: '🤖 ',
customManagers: [
{
"customType": "regex",
"fileMatch": [
"^pkg/apis/flux/.*\\.go$",
"^example/shoot\\.yaml"
customType: 'regex',
fileMatch: [
'^pkg/apis/flux/.*\\.go$',
'^example/shoot\\.yaml',
],
"matchStrings": [
"defaultFluxVersion = \"(?<currentValue>v[0-9.]+)\"",
matchStrings: [
'defaultFluxVersion = "(?<currentValue>v[0-9.]+)"',
// this matches any comment block that has 'renovate:flux-version', then
// any number of empty or comment lines, and then a substring that
// matches e.g. "Defaults to "v1.0.0".
"renovate:flux-version\\n(?:\\s*(?:\\/\\/).*\n)*.*Defaults to \"(?<currentValue>v[0-9.]+)\"",
'renovate:flux-version\\n(?:\\s*(?:\\/\\/).*\n)*.*Defaults to "(?<currentValue>v[0-9.]+)"',
// this matches any comment block that has 'renovate:flux-version', then
// any number of empty or comment lines, and then a substring that
// matches e.g. "version: v1.0.0".
"renovate:flux-version\\n(?:\\s*(?:#).*\n)*.*version: (?<currentValue>v[0-9.]+)\\s"
'renovate:flux-version\\n(?:\\s*(?:#).*\n)*.*version: (?<currentValue>v[0-9.]+)\\s',
],
"depNameTemplate": "github.com/fluxcd/flux2/v2",
"datasourceTemplate": "go"
}
depNameTemplate: 'github.com/fluxcd/flux2/v2',
datasourceTemplate: 'go',
},
],
"packageRules": [
packageRules: [
{
"groupName": "fluxcd",
"matchDatasources": [
"go"
groupName: 'fluxcd',
matchDatasources: [
'go',
],
prBodyNotes: [
':warning: This PR updates an API docstring, so you have to run `make generate` locally.',
],
"matchPackagePrefixes": [
"github.com/fluxcd"
matchPackageNames: [
'github.com/fluxcd{/,}**',
],
"prBodyNotes": [
":warning: This PR updates an API docstring, so you have to run `make generate` locally."
]
},
{
"matchPackageNames": [
"github.com/onsi/gomega",
"github.com/onsi/ginkgo/v2"
matchPackageNames: [
'github.com/onsi/gomega',
'github.com/onsi/ginkgo/v2',
],
matchUpdateTypes: [
'minor',
'patch',
],
"matchUpdateTypes": ["minor", "patch"],
"automerge": true
automerge: true,
},
{
// bump k8s, controller-runtime, and gardener go dependencies together
"groupName": "k8s and gardener packages",
"groupSlug": "k8s-gardener-go",
"matchDatasources": ["go"],
"matchPackagePrefixes": [
groupName: 'k8s and gardener packages',
groupSlug: 'k8s-gardener-go',
matchDatasources: [
'go',
],
matchPackageNames: [
// from "group:kubernetes"
"k8s.io/api",
"k8s.io/apiextensions-apiserver",
"k8s.io/apimachinery",
"k8s.io/apiserver",
"k8s.io/cli-runtime",
"k8s.io/client-go",
"k8s.io/cloud-provider",
"k8s.io/cluster-bootstrap",
"k8s.io/code-generator",
"k8s.io/component-base",
"k8s.io/controller-manager",
"k8s.io/cri-api",
"k8s.io/csi-translation-lib",
"k8s.io/kube-aggregator",
"k8s.io/kube-controller-manager",
"k8s.io/kube-proxy",
"k8s.io/kube-scheduler",
"k8s.io/kubectl",
"k8s.io/kubelet",
"k8s.io/legacy-cloud-providers",
"k8s.io/metrics",
"k8s.io/mount-utils",
"k8s.io/pod-security-admission",
"k8s.io/sample-apiserver",
"k8s.io/sample-cli-plugin",
"k8s.io/sample-controller",
'k8s.io/api{/,}**',
'k8s.io/apiextensions-apiserver{/,}**',
'k8s.io/apimachinery{/,}**',
'k8s.io/apiserver{/,}**',
'k8s.io/cli-runtime{/,}**',
'k8s.io/client-go{/,}**',
'k8s.io/cloud-provider{/,}**',
'k8s.io/cluster-bootstrap{/,}**',
'k8s.io/code-generator{/,}**',
'k8s.io/component-base{/,}**',
'k8s.io/controller-manager{/,}**',
'k8s.io/cri-api{/,}**',
'k8s.io/csi-translation-lib{/,}**',
'k8s.io/kube-aggregator{/,}**',
'k8s.io/kube-controller-manager{/,}**',
'k8s.io/kube-proxy{/,}**',
'k8s.io/kube-scheduler{/,}**',
'k8s.io/kubectl{/,}**',
'k8s.io/kubelet{/,}**',
'k8s.io/legacy-cloud-providers{/,}**',
'k8s.io/metrics{/,}**',
'k8s.io/mount-utils{/,}**',
'k8s.io/pod-security-admission{/,}**',
'k8s.io/sample-apiserver{/,}**',
'k8s.io/sample-cli-plugin{/,}**',
'k8s.io/sample-controller{/,}**',
// added packages
"github.com/gardener/gardener",
"sigs.k8s.io/controller-runtime"
]
'github.com/gardener/gardener{/,}**',
'sigs.k8s.io/controller-runtime{/,}**',
],
},
{
// we need to bump k8s and controller-runtime minor versions together with gardener
// disable minor version bumps for k8s and controller-runtime
"matchDatasources": ["go"],
"matchUpdateTypes": ["minor"],
"matchPackagePrefixes": [
matchDatasources: [
'go',
],
matchUpdateTypes: [
'minor',
],
enabled: false,
matchPackageNames: [
// from "group:kubernetes"
"k8s.io/api",
"k8s.io/apiextensions-apiserver",
"k8s.io/apimachinery",
"k8s.io/apiserver",
"k8s.io/cli-runtime",
"k8s.io/client-go",
"k8s.io/cloud-provider",
"k8s.io/cluster-bootstrap",
"k8s.io/code-generator",
"k8s.io/component-base",
"k8s.io/controller-manager",
"k8s.io/cri-api",
"k8s.io/csi-translation-lib",
"k8s.io/kube-aggregator",
"k8s.io/kube-controller-manager",
"k8s.io/kube-proxy",
"k8s.io/kube-scheduler",
"k8s.io/kubectl",
"k8s.io/kubelet",
"k8s.io/legacy-cloud-providers",
"k8s.io/metrics",
"k8s.io/mount-utils",
"k8s.io/pod-security-admission",
"k8s.io/sample-apiserver",
"k8s.io/sample-cli-plugin",
"k8s.io/sample-controller",
'k8s.io/api{/,}**',
'k8s.io/apiextensions-apiserver{/,}**',
'k8s.io/apimachinery{/,}**',
'k8s.io/apiserver{/,}**',
'k8s.io/cli-runtime{/,}**',
'k8s.io/client-go{/,}**',
'k8s.io/cloud-provider{/,}**',
'k8s.io/cluster-bootstrap{/,}**',
'k8s.io/code-generator{/,}**',
'k8s.io/component-base{/,}**',
'k8s.io/controller-manager{/,}**',
'k8s.io/cri-api{/,}**',
'k8s.io/csi-translation-lib{/,}**',
'k8s.io/kube-aggregator{/,}**',
'k8s.io/kube-controller-manager{/,}**',
'k8s.io/kube-proxy{/,}**',
'k8s.io/kube-scheduler{/,}**',
'k8s.io/kubectl{/,}**',
'k8s.io/kubelet{/,}**',
'k8s.io/legacy-cloud-providers{/,}**',
'k8s.io/metrics{/,}**',
'k8s.io/mount-utils{/,}**',
'k8s.io/pod-security-admission{/,}**',
'k8s.io/sample-apiserver{/,}**',
'k8s.io/sample-cli-plugin{/,}**',
'k8s.io/sample-controller{/,}**',
// added packages
"sigs.k8s.io/controller-runtime"
'sigs.k8s.io/controller-runtime{/,}**',
],
"enabled": false
}
]
},
],
}