renovate: group core bazel dependencies (Bazel, rules_go, gazelle) (#2204)

* migrate renovate config and adopt json5

* renovate: group core bazel dependencies (Bazel, rules_go, gazelle)
This commit is contained in:
Malte Poll 2023-08-10 10:49:28 +02:00 committed by GitHub
parent 947ceaa670
commit 33c962b427
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,21 +1,16 @@
{ {
"$schema": "https://docs.renovatebot.com/renovate-schema.json", "$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [ "extends": [
"config:base", "config:recommended",
":preserveSemverRanges", ":preserveSemverRanges",
"helpers:pinGitHubActionDigests", "helpers:pinGitHubActionDigests",
":separateMajorReleases", ":separateMajorReleases",
":semanticCommitsDisabled" ":semanticCommitsDisabled",
], ],
"commitMessagePrefix": "deps:", "commitMessagePrefix": "deps:",
"commitMessageAction": "update", "commitMessageAction": "update",
"addLabels": [ "addLabels": ["dependencies"],
"dependencies" "postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths"],
],
"postUpdateOptions": [
"gomodTidy",
"gomodUpdateImportPaths"
],
"prConcurrentLimit": 4, "prConcurrentLimit": 4,
"ignorePaths": [ "ignorePaths": [
"cli/internal/helm/charts/cilium/**", "cli/internal/helm/charts/cilium/**",
@ -23,19 +18,13 @@
"cli/internal/helm/charts/edgeless/csi/charts/azuredisk-csi-driver/**", "cli/internal/helm/charts/edgeless/csi/charts/azuredisk-csi-driver/**",
"cli/internal/helm/charts/edgeless/csi/charts/gcp-compute-persistent-disk-csi-driver/**", "cli/internal/helm/charts/edgeless/csi/charts/gcp-compute-persistent-disk-csi-driver/**",
"cli/internal/helm/charts/edgeless/csi/charts/openstack-cinder-csi/**", "cli/internal/helm/charts/edgeless/csi/charts/openstack-cinder-csi/**",
"operators/constellation-node-operator/config/manager/kustomization.yaml" "operators/constellation-node-operator/config/manager/kustomization.yaml",
],
"ignoreDeps": [
"github.com/edgelesssys/constellation/v2"
], ],
"ignoreDeps": ["github.com/edgelesssys/constellation/v2"],
"packageRules": [ "packageRules": [
{ {
"matchManagers": [ "matchManagers": ["gomod"],
"gomod" "matchDepTypes": ["indirect"],
],
"matchDepTypes": [
"indirect"
],
"matchUpdateTypes": [ "matchUpdateTypes": [
"minor", "minor",
"patch", "patch",
@ -44,78 +33,62 @@
"digest", "digest",
"lockFileMaintenance", "lockFileMaintenance",
"rollback", "rollback",
"bump" "bump",
], ],
"enabled": true, "enabled": true,
"prPriority": -30 "prPriority": -30,
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": ["^k8s.io", "^sigs.k8s.io"],
"^k8s.io", "groupName": "K8s dependencies",
"^sigs.k8s.io"
],
"groupName": "K8s dependencies"
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": ["^go.etcd.io/etcd"],
"^go.etcd.io/etcd" "groupName": "etcd dependencies",
],
"groupName": "etcd dependencies"
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": ["^github.com/hashicorp/go-kms-wrapping"],
"^github.com/hashicorp/go-kms-wrapping" "groupName": "github.com/hashicorp/go-kms-wrapping",
],
"groupName": "github.com/hashicorp/go-kms-wrapping"
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": ["^github.com/aws/aws-sdk-go-v2"],
"^github.com/aws/aws-sdk-go-v2"
],
"groupName": "AWS SDK", "groupName": "AWS SDK",
"prPriority": -10 "prPriority": -10,
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": [
"^github.com/Azure/", "^github.com/Azure/",
"^github.com/AzureAD/microsoft-authentication-library-for-go" "^github.com/AzureAD/microsoft-authentication-library-for-go",
], ],
"groupName": "Azure SDK" "groupName": "Azure SDK",
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": ["^cloud.google.com/go"],
"^cloud.google.com/go" "groupName": "Google SDK",
],
"groupName": "Google SDK"
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": ["^google.golang.org/genproto"],
"^google.golang.org/genproto" "prPriority": -10,
],
"prPriority": -10
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": ["^libvirt.org/go"],
"^libvirt.org/go" "groupName": "libvirt.org/go",
],
"groupName": "libvirt.org/go"
}, },
{ {
"matchDatasources": [ "matchManagers": ["bazelisk", "bazel", "bazel-module"],
"golang-version" "matchPackageNames": ["bazel", "io_bazel_rules_go", "bazel_gazelle"],
], "groupName": "bazel (core)",
"allowedVersions": "1.19"
}, },
{ {
"matchManagers": [ "matchDatasources": ["golang-version"],
"pip_requirements" "allowedVersions": "1.19",
],
"groupName": "Python dependencies"
}, },
{ {
"matchManagers": [ "matchManagers": ["pip_requirements"],
"github-actions" "groupName": "Python dependencies",
], },
{
"matchManagers": ["github-actions"],
"groupName": "GitHub action dependencies", "groupName": "GitHub action dependencies",
"matchUpdateTypes": [ "matchUpdateTypes": [
"minor", "minor",
@ -125,173 +98,136 @@
"digest", "digest",
"lockFileMaintenance", "lockFileMaintenance",
"rollback", "rollback",
"bump" "bump",
] ],
}, },
{ {
"matchPackageNames": [ "matchPackageNames": ["kubernetes/kubernetes"],
"kubernetes/kubernetes"
],
"versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$", "versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$",
"groupName": "Kubernetes versions", "groupName": "Kubernetes versions",
"prPriority": 15 "prPriority": 15,
}, },
{ {
"matchPackageNames": [ "matchPackageNames": [
"registry.k8s.io/provider-aws/cloud-controller-manager" "registry.k8s.io/provider-aws/cloud-controller-manager",
], ],
"versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$", "versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$",
"groupName": "K8s constrained AWS versions", "groupName": "K8s constrained AWS versions",
"prPriority": 15 "prPriority": 15,
}, },
{ {
"matchPackageNames": [ "matchPackageNames": [
"mcr.microsoft.com/oss/kubernetes/azure-cloud-controller-manager", "mcr.microsoft.com/oss/kubernetes/azure-cloud-controller-manager",
"mcr.microsoft.com/oss/kubernetes/azure-cloud-node-manager" "mcr.microsoft.com/oss/kubernetes/azure-cloud-node-manager",
], ],
"versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$", "versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$",
"groupName": "K8s constrained Azure versions", "groupName": "K8s constrained Azure versions",
"prPriority": 15 "prPriority": 15,
}, },
{ {
"matchPackageNames": [ "matchPackageNames": [
"docker.io/k8scloudprovider/openstack-cloud-controller-manager" "docker.io/k8scloudprovider/openstack-cloud-controller-manager",
], ],
"versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$", "versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$",
"groupName": "K8s constrained OpenStack versions", "groupName": "K8s constrained OpenStack versions",
"prPriority": 15 "prPriority": 15,
}, },
{ {
"matchPackageNames": [ "matchPackageNames": ["registry.k8s.io/autoscaling/cluster-autoscaler"],
"registry.k8s.io/autoscaling/cluster-autoscaler"
],
"versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$", "versioning": "regex:^(?<compatibility>v?\\d+\\.\\d+\\.)(?<patch>\\d+)$",
"groupName": "K8s constrained GCP versions", "groupName": "K8s constrained GCP versions",
"prPriority": 15 "prPriority": 15,
}, },
{ {
"matchPackageNames": [ "matchPackageNames": ["ghcr.io/edgelesssys/cloud-provider-gcp"],
"ghcr.io/edgelesssys/cloud-provider-gcp"
],
"versioning": "regex:^(?<compatibility>v\\d+\\.)(?<minor>\\d+)\\.(?<patch>\\d+)$", "versioning": "regex:^(?<compatibility>v\\d+\\.)(?<minor>\\d+)\\.(?<patch>\\d+)$",
"groupName": "cloud-provider-gcp (K8s version constrained)", "groupName": "cloud-provider-gcp (K8s version constrained)",
"prPriority": 15 "prPriority": 15,
}, },
{ {
"matchPackagePrefixes": [ "matchPackagePrefixes": ["ghcr.io/edgelesssys/"],
"ghcr.io/edgelesssys/" "excludePackageNames": ["ghcr.io/edgelesssys/cloud-provider-gcp"],
],
"excludePackageNames": [
"ghcr.io/edgelesssys/cloud-provider-gcp"
],
"versioning": "semver", "versioning": "semver",
"groupName": "Constellation containers", "groupName": "Constellation containers",
"prPriority": 20 "prPriority": 20,
}, },
{ {
"matchPackageNames": [ "matchPackageNames": [
"registry.k8s.io/kas-network-proxy/proxy-agent", "registry.k8s.io/kas-network-proxy/proxy-agent",
"registry.k8s.io/kas-network-proxy/proxy-server" "registry.k8s.io/kas-network-proxy/proxy-server",
], ],
"versioning": "semver", "versioning": "semver",
"groupName": "K8s version independent containers", "groupName": "K8s version independent containers",
"prPriority": 15 "prPriority": 15,
}, },
{ {
"matchPackageNames": [ "matchPackageNames": ["^k8s.io/client-go"],
"^k8s.io/client-go" "matchUpdateTypes": ["major"],
], "enabled": false,
"matchUpdateTypes": [
"major"
],
"enabled": false
}, },
{ {
"matchLanguages": [ "matchCategories": ["python", "js", "node"],
"python", "prPriority": -20,
"js",
"node"
],
"prPriority": -20
}, },
{ {
"matchManagers": [ "matchManagers": ["github-actions"],
"github-actions" "matchPackageNames": ["slsa-framework/slsa-github-generator"],
], "pinDigests": false,
"matchPackageNames": [
"slsa-framework/slsa-github-generator"
],
"pinDigests": false
}, },
{ {
"matchPackagePatterns": [ "matchPackagePatterns": ["_(darwin|linux)_(arm64|amd64)$"],
"_(darwin|linux)_(arm64|amd64)$"
],
"additionalBranchPrefix": "{{packageName}}-", "additionalBranchPrefix": "{{packageName}}-",
"groupName": "{{packageName}}" "groupName": "{{packageName}}",
} },
], ],
"regexManagers": [ "regexManagers": [
{ {
"fileMatch": [ "fileMatch": ["(^|\\/)versions.go$"],
"(^|\\/)versions.go$"
],
"matchStrings": [ "matchStrings": [
" \"(?<depName>[^\"]*?):(?<currentValue>[^\"]*?)@(?<currentDigest>sha256:[a-f0-9]+)\"[^\\n]+\\/\\/ renovate:container" " \"(?<depName>[^\"]*?):(?<currentValue>[^\"]*?)@(?<currentDigest>sha256:[a-f0-9]+)\"[^\\n]+\\/\\/ renovate:container",
], ],
"datasourceTemplate": "docker" "datasourceTemplate": "docker",
}, },
{ {
"fileMatch": [ "fileMatch": ["(^|\\/)versions.go$"],
"(^|\\/)versions.go$"
],
"matchStrings": [ "matchStrings": [
" \"https:\\/\\/storage\\.googleapis\\.com\\/kubernetes-release\\/release\\/(?<currentValue>[^\\/\\s\"]+)\\/[^\"]+\"[^\\n]+\\/\\/ renovate:kubernetes-release", " \"https:\\/\\/storage\\.googleapis\\.com\\/kubernetes-release\\/release\\/(?<currentValue>[^\\/\\s\"]+)\\/[^\"]+\"[^\\n]+\\/\\/ renovate:kubernetes-release",
" \"(?<currentValue>v\\d+\\.\\d+\\.\\d+)\"[^\\n]+\\/\\/ renovate:kubernetes-release" " \"(?<currentValue>v\\d+\\.\\d+\\.\\d+)\"[^\\n]+\\/\\/ renovate:kubernetes-release",
], ],
"depNameTemplate": "kubernetes/kubernetes", "depNameTemplate": "kubernetes/kubernetes",
"datasourceTemplate": "github-releases" "datasourceTemplate": "github-releases",
}, },
{ {
"fileMatch": [ "fileMatch": ["(^|\\/)versions.go$"],
"(^|\\/)versions.go$"
],
"matchStrings": [ "matchStrings": [
" \"https:\\/\\/github\\.com\\/(?<depName>[^\\/\\s\"]+\\/[^\\/\\s\"]+)\\/releases\\/download\\/(?<currentValue>[^\\/\\s\"]+)\\/[^\"]+\"[^\\n]+\\/\\/ renovate:github-release" " \"https:\\/\\/github\\.com\\/(?<depName>[^\\/\\s\"]+\\/[^\\/\\s\"]+)\\/releases\\/download\\/(?<currentValue>[^\\/\\s\"]+)\\/[^\"]+\"[^\\n]+\\/\\/ renovate:github-release",
], ],
"datasourceTemplate": "github-releases" "datasourceTemplate": "github-releases",
}, },
{ {
"fileMatch": [ "fileMatch": ["(^|\\/)versions.go$"],
"(^|\\/)versions.go$"
],
"matchStrings": [ "matchStrings": [
" \"https:\\/\\/github\\.com\\/kubernetes-sigs\\/cri-tools\\/releases\\/download\\/(?<currentValue>[^\\/\\s\"]+)\\/[^\"]+\"" " \"https:\\/\\/github\\.com\\/kubernetes-sigs\\/cri-tools\\/releases\\/download\\/(?<currentValue>[^\\/\\s\"]+)\\/[^\"]+\"",
], ],
"depNameTemplate": "kubernetes-sigs/cri-tools", "depNameTemplate": "kubernetes-sigs/cri-tools",
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"autoReplaceStringTemplate": " \"https://github.com/kubernetes-sigs/cri-tools/releases/download/{{{newValue}}}/crictl-{{{newValue}}}-linux-amd64.tar.gz\"" "autoReplaceStringTemplate": " \"https://github.com/kubernetes-sigs/cri-tools/releases/download/{{{newValue}}}/crictl-{{{newValue}}}-linux-amd64.tar.gz\"",
}, },
{ {
"fileMatch": [ "fileMatch": ["versions.go$"],
"versions.go$"
],
"matchStrings": [ "matchStrings": [
" \"https:\\/\\/github\\.com\\/containernetworking\\/plugins\\/releases\\/download\\/(?<currentValue>[^\\/\\s\"]+)\\/[^\"]+\"" " \"https:\\/\\/github\\.com\\/containernetworking\\/plugins\\/releases\\/download\\/(?<currentValue>[^\\/\\s\"]+)\\/[^\"]+\"",
], ],
"depNameTemplate": "containernetworking/plugins", "depNameTemplate": "containernetworking/plugins",
"datasourceTemplate": "github-releases", "datasourceTemplate": "github-releases",
"autoReplaceStringTemplate": " \"https://github.com/containernetworking/plugins/releases/download/{{{newValue}}}/cni-plugins-linux-amd64-{{{newValue}}}.tgz\"" "autoReplaceStringTemplate": " \"https://github.com/containernetworking/plugins/releases/download/{{{newValue}}}/cni-plugins-linux-amd64-{{{newValue}}}.tgz\"",
}, },
{ {
"fileMatch": [ "fileMatch": ["\\.yaml$", "\\.yml$"],
"\\.yaml$",
"\\.yml$"
],
"matchStrings": [ "matchStrings": [
"go install (?<depName>[^@]+?)@(?<currentValue>[0-9a-f]{40})" "go install (?<depName>[^@]+?)@(?<currentValue>[0-9a-f]{40})",
], ],
"datasourceTemplate": "go" "datasourceTemplate": "go",
} },
] ],
} }