From 33c962b427dc54acd17592a97564fa3938e881ea Mon Sep 17 00:00:00 2001 From: Malte Poll <1780588+malt3@users.noreply.github.com> Date: Thu, 10 Aug 2023 10:49:28 +0200 Subject: [PATCH] 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) --- renovate.json => renovate.json5 | 236 ++++++++++++-------------------- 1 file changed, 86 insertions(+), 150 deletions(-) rename renovate.json => renovate.json5 (56%) diff --git a/renovate.json b/renovate.json5 similarity index 56% rename from renovate.json rename to renovate.json5 index 2bc443902..8dfb1b327 100644 --- a/renovate.json +++ b/renovate.json5 @@ -1,21 +1,16 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ - "config:base", + "config:recommended", ":preserveSemverRanges", "helpers:pinGitHubActionDigests", ":separateMajorReleases", - ":semanticCommitsDisabled" + ":semanticCommitsDisabled", ], "commitMessagePrefix": "deps:", "commitMessageAction": "update", - "addLabels": [ - "dependencies" - ], - "postUpdateOptions": [ - "gomodTidy", - "gomodUpdateImportPaths" - ], + "addLabels": ["dependencies"], + "postUpdateOptions": ["gomodTidy", "gomodUpdateImportPaths"], "prConcurrentLimit": 4, "ignorePaths": [ "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/gcp-compute-persistent-disk-csi-driver/**", "cli/internal/helm/charts/edgeless/csi/charts/openstack-cinder-csi/**", - "operators/constellation-node-operator/config/manager/kustomization.yaml" - ], - "ignoreDeps": [ - "github.com/edgelesssys/constellation/v2" + "operators/constellation-node-operator/config/manager/kustomization.yaml", ], + "ignoreDeps": ["github.com/edgelesssys/constellation/v2"], "packageRules": [ { - "matchManagers": [ - "gomod" - ], - "matchDepTypes": [ - "indirect" - ], + "matchManagers": ["gomod"], + "matchDepTypes": ["indirect"], "matchUpdateTypes": [ "minor", "patch", @@ -44,78 +33,62 @@ "digest", "lockFileMaintenance", "rollback", - "bump" + "bump", ], "enabled": true, - "prPriority": -30 + "prPriority": -30, }, { - "matchPackagePatterns": [ - "^k8s.io", - "^sigs.k8s.io" - ], - "groupName": "K8s dependencies" + "matchPackagePatterns": ["^k8s.io", "^sigs.k8s.io"], + "groupName": "K8s dependencies", }, { - "matchPackagePatterns": [ - "^go.etcd.io/etcd" - ], - "groupName": "etcd dependencies" + "matchPackagePatterns": ["^go.etcd.io/etcd"], + "groupName": "etcd dependencies", }, { - "matchPackagePatterns": [ - "^github.com/hashicorp/go-kms-wrapping" - ], - "groupName": "github.com/hashicorp/go-kms-wrapping" + "matchPackagePatterns": ["^github.com/hashicorp/go-kms-wrapping"], + "groupName": "github.com/hashicorp/go-kms-wrapping", }, { - "matchPackagePatterns": [ - "^github.com/aws/aws-sdk-go-v2" - ], + "matchPackagePatterns": ["^github.com/aws/aws-sdk-go-v2"], "groupName": "AWS SDK", - "prPriority": -10 + "prPriority": -10, }, { "matchPackagePatterns": [ "^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": [ - "^cloud.google.com/go" - ], - "groupName": "Google SDK" + "matchPackagePatterns": ["^cloud.google.com/go"], + "groupName": "Google SDK", }, { - "matchPackagePatterns": [ - "^google.golang.org/genproto" - ], - "prPriority": -10 + "matchPackagePatterns": ["^google.golang.org/genproto"], + "prPriority": -10, }, { - "matchPackagePatterns": [ - "^libvirt.org/go" - ], - "groupName": "libvirt.org/go" + "matchPackagePatterns": ["^libvirt.org/go"], + "groupName": "libvirt.org/go", }, { - "matchDatasources": [ - "golang-version" - ], - "allowedVersions": "1.19" + "matchManagers": ["bazelisk", "bazel", "bazel-module"], + "matchPackageNames": ["bazel", "io_bazel_rules_go", "bazel_gazelle"], + "groupName": "bazel (core)", }, { - "matchManagers": [ - "pip_requirements" - ], - "groupName": "Python dependencies" + "matchDatasources": ["golang-version"], + "allowedVersions": "1.19", }, { - "matchManagers": [ - "github-actions" - ], + "matchManagers": ["pip_requirements"], + "groupName": "Python dependencies", + }, + { + "matchManagers": ["github-actions"], "groupName": "GitHub action dependencies", "matchUpdateTypes": [ "minor", @@ -125,173 +98,136 @@ "digest", "lockFileMaintenance", "rollback", - "bump" - ] + "bump", + ], }, { - "matchPackageNames": [ - "kubernetes/kubernetes" - ], + "matchPackageNames": ["kubernetes/kubernetes"], "versioning": "regex:^(?v?\\d+\\.\\d+\\.)(?\\d+)$", "groupName": "Kubernetes versions", - "prPriority": 15 + "prPriority": 15, }, { "matchPackageNames": [ - "registry.k8s.io/provider-aws/cloud-controller-manager" + "registry.k8s.io/provider-aws/cloud-controller-manager", ], "versioning": "regex:^(?v?\\d+\\.\\d+\\.)(?\\d+)$", "groupName": "K8s constrained AWS versions", - "prPriority": 15 + "prPriority": 15, }, { "matchPackageNames": [ "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:^(?v?\\d+\\.\\d+\\.)(?\\d+)$", "groupName": "K8s constrained Azure versions", - "prPriority": 15 + "prPriority": 15, }, { "matchPackageNames": [ - "docker.io/k8scloudprovider/openstack-cloud-controller-manager" + "docker.io/k8scloudprovider/openstack-cloud-controller-manager", ], "versioning": "regex:^(?v?\\d+\\.\\d+\\.)(?\\d+)$", "groupName": "K8s constrained OpenStack versions", - "prPriority": 15 + "prPriority": 15, }, { - "matchPackageNames": [ - "registry.k8s.io/autoscaling/cluster-autoscaler" - ], + "matchPackageNames": ["registry.k8s.io/autoscaling/cluster-autoscaler"], "versioning": "regex:^(?v?\\d+\\.\\d+\\.)(?\\d+)$", "groupName": "K8s constrained GCP versions", - "prPriority": 15 + "prPriority": 15, }, { - "matchPackageNames": [ - "ghcr.io/edgelesssys/cloud-provider-gcp" - ], + "matchPackageNames": ["ghcr.io/edgelesssys/cloud-provider-gcp"], "versioning": "regex:^(?v\\d+\\.)(?\\d+)\\.(?\\d+)$", "groupName": "cloud-provider-gcp (K8s version constrained)", - "prPriority": 15 + "prPriority": 15, }, { - "matchPackagePrefixes": [ - "ghcr.io/edgelesssys/" - ], - "excludePackageNames": [ - "ghcr.io/edgelesssys/cloud-provider-gcp" - ], + "matchPackagePrefixes": ["ghcr.io/edgelesssys/"], + "excludePackageNames": ["ghcr.io/edgelesssys/cloud-provider-gcp"], "versioning": "semver", "groupName": "Constellation containers", - "prPriority": 20 + "prPriority": 20, }, { "matchPackageNames": [ "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", "groupName": "K8s version independent containers", - "prPriority": 15 + "prPriority": 15, }, { - "matchPackageNames": [ - "^k8s.io/client-go" - ], - "matchUpdateTypes": [ - "major" - ], - "enabled": false + "matchPackageNames": ["^k8s.io/client-go"], + "matchUpdateTypes": ["major"], + "enabled": false, }, { - "matchLanguages": [ - "python", - "js", - "node" - ], - "prPriority": -20 + "matchCategories": ["python", "js", "node"], + "prPriority": -20, }, { - "matchManagers": [ - "github-actions" - ], - "matchPackageNames": [ - "slsa-framework/slsa-github-generator" - ], - "pinDigests": false + "matchManagers": ["github-actions"], + "matchPackageNames": ["slsa-framework/slsa-github-generator"], + "pinDigests": false, }, { - "matchPackagePatterns": [ - "_(darwin|linux)_(arm64|amd64)$" - ], + "matchPackagePatterns": ["_(darwin|linux)_(arm64|amd64)$"], "additionalBranchPrefix": "{{packageName}}-", - "groupName": "{{packageName}}" - } + "groupName": "{{packageName}}", + }, ], "regexManagers": [ { - "fileMatch": [ - "(^|\\/)versions.go$" - ], + "fileMatch": ["(^|\\/)versions.go$"], "matchStrings": [ - " \"(?[^\"]*?):(?[^\"]*?)@(?sha256:[a-f0-9]+)\"[^\\n]+\\/\\/ renovate:container" + " \"(?[^\"]*?):(?[^\"]*?)@(?sha256:[a-f0-9]+)\"[^\\n]+\\/\\/ renovate:container", ], - "datasourceTemplate": "docker" + "datasourceTemplate": "docker", }, { - "fileMatch": [ - "(^|\\/)versions.go$" - ], + "fileMatch": ["(^|\\/)versions.go$"], "matchStrings": [ " \"https:\\/\\/storage\\.googleapis\\.com\\/kubernetes-release\\/release\\/(?[^\\/\\s\"]+)\\/[^\"]+\"[^\\n]+\\/\\/ renovate:kubernetes-release", - " \"(?v\\d+\\.\\d+\\.\\d+)\"[^\\n]+\\/\\/ renovate:kubernetes-release" + " \"(?v\\d+\\.\\d+\\.\\d+)\"[^\\n]+\\/\\/ renovate:kubernetes-release", ], "depNameTemplate": "kubernetes/kubernetes", - "datasourceTemplate": "github-releases" + "datasourceTemplate": "github-releases", }, { - "fileMatch": [ - "(^|\\/)versions.go$" - ], + "fileMatch": ["(^|\\/)versions.go$"], "matchStrings": [ - " \"https:\\/\\/github\\.com\\/(?[^\\/\\s\"]+\\/[^\\/\\s\"]+)\\/releases\\/download\\/(?[^\\/\\s\"]+)\\/[^\"]+\"[^\\n]+\\/\\/ renovate:github-release" + " \"https:\\/\\/github\\.com\\/(?[^\\/\\s\"]+\\/[^\\/\\s\"]+)\\/releases\\/download\\/(?[^\\/\\s\"]+)\\/[^\"]+\"[^\\n]+\\/\\/ renovate:github-release", ], - "datasourceTemplate": "github-releases" + "datasourceTemplate": "github-releases", }, { - "fileMatch": [ - "(^|\\/)versions.go$" - ], + "fileMatch": ["(^|\\/)versions.go$"], "matchStrings": [ - " \"https:\\/\\/github\\.com\\/kubernetes-sigs\\/cri-tools\\/releases\\/download\\/(?[^\\/\\s\"]+)\\/[^\"]+\"" + " \"https:\\/\\/github\\.com\\/kubernetes-sigs\\/cri-tools\\/releases\\/download\\/(?[^\\/\\s\"]+)\\/[^\"]+\"", ], "depNameTemplate": "kubernetes-sigs/cri-tools", "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": [ - "versions.go$" - ], + "fileMatch": ["versions.go$"], "matchStrings": [ - " \"https:\\/\\/github\\.com\\/containernetworking\\/plugins\\/releases\\/download\\/(?[^\\/\\s\"]+)\\/[^\"]+\"" + " \"https:\\/\\/github\\.com\\/containernetworking\\/plugins\\/releases\\/download\\/(?[^\\/\\s\"]+)\\/[^\"]+\"", ], "depNameTemplate": "containernetworking/plugins", "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": [ - "\\.yaml$", - "\\.yml$" - ], + "fileMatch": ["\\.yaml$", "\\.yml$"], "matchStrings": [ - "go install (?[^@]+?)@(?[0-9a-f]{40})" + "go install (?[^@]+?)@(?[0-9a-f]{40})", ], - "datasourceTemplate": "go" - } - ] + "datasourceTemplate": "go", + }, + ], }