|
1 | 1 | { |
2 | | - "$schema": "https://docs.renovatebot.com/renovate-schema.json", |
3 | | - "extends": [ |
4 | | - "config:recommended", |
5 | | - "helpers:pinGitHubActionDigests", |
6 | | - ":semanticCommits" |
| 2 | + $schema: 'https://docs.renovatebot.com/renovate-schema.json', |
| 3 | + extends: [ |
| 4 | + 'config:recommended', |
| 5 | + 'helpers:pinGitHubActionDigests', |
| 6 | + ':semanticCommits', |
7 | 7 | ], |
8 | | - // We only want renovate to rebase PRs when they have conflicts, |
9 | | - // default "auto" mode is not required. |
10 | | - "rebaseWhen": "conflicted", |
11 | | - // The maximum number of PRs to be created in parallel |
12 | | - "prConcurrentLimit": 5, |
13 | | - // The branches renovate should target |
14 | | - "baseBranches": ["main"], |
15 | | - "ignorePaths": ["design/**"], |
16 | | - "postUpdateOptions": ["gomodTidy"], |
17 | | - // All PRs should have a label |
18 | | - "labels": ["automated"], |
19 | | - "customManagers": [ |
| 8 | + rebaseWhen: 'conflicted', |
| 9 | + prConcurrentLimit: 5, |
| 10 | + baseBranches: [ |
| 11 | + 'main', |
| 12 | + ], |
| 13 | + ignorePaths: [ |
| 14 | + 'design/**', |
| 15 | + ], |
| 16 | + postUpdateOptions: [ |
| 17 | + 'gomodTidy', |
| 18 | + ], |
| 19 | + labels: [ |
| 20 | + 'automated', |
| 21 | + ], |
| 22 | + customManagers: [ |
20 | 23 | { |
21 | | - "customType": "regex", |
22 | | - "description": "Bump Go version used in workflows", |
23 | | - "fileMatch": ["^\\.github\\/workflows\\/[^/]+\\.ya?ml$"], |
24 | | - "matchStrings": [ |
25 | | - "GO_VERSION: '(?<currentValue>.*?)'\\n" |
26 | | - ], |
27 | | - "datasourceTemplate": "golang-version", |
28 | | - "depNameTemplate": "golang" |
29 | | - }, { |
30 | | - "customType": "regex", |
31 | | - "description": "Bump golangci-lint version in workflows and the Makefile", |
32 | | - "fileMatch": ["^\\.github\\/workflows\\/[^/]+\\.ya?ml$","^Makefile$"], |
33 | | - "matchStrings": [ |
| 24 | + customType: 'regex', |
| 25 | + description: 'Bump Go version used in workflows', |
| 26 | + fileMatch: [ |
| 27 | + '^\\.github\\/workflows\\/[^/]+\\.ya?ml$', |
| 28 | + ], |
| 29 | + matchStrings: [ |
| 30 | + "GO_VERSION: '(?<currentValue>.*?)'\\n", |
| 31 | + ], |
| 32 | + datasourceTemplate: 'golang-version', |
| 33 | + depNameTemplate: 'golang', |
| 34 | + }, |
| 35 | + { |
| 36 | + customType: 'regex', |
| 37 | + description: 'Bump golangci-lint version in workflows and the Makefile', |
| 38 | + fileMatch: [ |
| 39 | + '^\\.github\\/workflows\\/[^/]+\\.ya?ml$', |
| 40 | + '^Makefile$', |
| 41 | + ], |
| 42 | + matchStrings: [ |
34 | 43 | "GOLANGCI_VERSION: 'v(?<currentValue>.*?)'\\n", |
35 | | - "GOLANGCILINT_VERSION = (?<currentValue>.*?)\\n" |
36 | | - ], |
37 | | - "datasourceTemplate": "github-tags", |
38 | | - "depNameTemplate": "golangci/golangci-lint", |
39 | | - "extractVersionTemplate": "^v(?<version>.*)$" |
40 | | - }, { |
41 | | - "customType": "regex", |
42 | | - "description": "Bump helm version in the Makefile", |
43 | | - "fileMatch": ["^Makefile$"], |
44 | | - "matchStrings": [ |
45 | | - "HELM3_VERSION = (?<currentValue>.*?)\\n" |
46 | | - ], |
47 | | - "datasourceTemplate": "github-tags", |
48 | | - "depNameTemplate": "helm/helm", |
49 | | - }, { |
50 | | - "customType": "regex", |
51 | | - "description": "Bump kind version in the Makefile", |
52 | | - "fileMatch": ["^Makefile$"], |
53 | | - "matchStrings": [ |
54 | | - "KIND_VERSION = (?<currentValue>.*?)\\n" |
55 | | - ], |
56 | | - "datasourceTemplate": "github-tags", |
57 | | - "depNameTemplate": "kubernetes-sigs/kind", |
58 | | - } |
| 44 | + 'GOLANGCILINT_VERSION = (?<currentValue>.*?)\\n', |
| 45 | + ], |
| 46 | + datasourceTemplate: 'github-tags', |
| 47 | + depNameTemplate: 'golangci/golangci-lint', |
| 48 | + extractVersionTemplate: '^v(?<version>.*)$', |
| 49 | + }, |
| 50 | + { |
| 51 | + customType: 'regex', |
| 52 | + description: 'Bump helm version in the Makefile', |
| 53 | + fileMatch: [ |
| 54 | + '^Makefile$', |
| 55 | + ], |
| 56 | + matchStrings: [ |
| 57 | + 'HELM3_VERSION = (?<currentValue>.*?)\\n', |
| 58 | + ], |
| 59 | + datasourceTemplate: 'github-tags', |
| 60 | + depNameTemplate: 'helm/helm', |
| 61 | + }, |
| 62 | + { |
| 63 | + customType: 'regex', |
| 64 | + description: 'Bump kind version in the Makefile', |
| 65 | + fileMatch: [ |
| 66 | + '^Makefile$', |
| 67 | + ], |
| 68 | + matchStrings: [ |
| 69 | + 'KIND_VERSION = (?<currentValue>.*?)\\n', |
| 70 | + ], |
| 71 | + datasourceTemplate: 'github-tags', |
| 72 | + depNameTemplate: 'kubernetes-sigs/kind', |
| 73 | + }, |
59 | 74 | ], |
60 | | - // PackageRules disabled below should be enabled in case of vulnerabilities |
61 | | - "vulnerabilityAlerts": { |
62 | | - "enabled": true |
| 75 | + vulnerabilityAlerts: { |
| 76 | + enabled: true, |
63 | 77 | }, |
64 | | - "osvVulnerabilityAlerts": true, |
65 | | - // Renovate evaluates all packageRules in order, so low priority rules should |
66 | | - // be at the beginning, high priority at the end |
67 | | - "packageRules": [ |
| 78 | + osvVulnerabilityAlerts: true, |
| 79 | + packageRules: [ |
68 | 80 | { |
69 | | - "description": "Only get Docker image updates every 2 weeks to reduce noise", |
70 | | - "matchDatasources": ["docker"], |
71 | | - "schedule": ["every 2 week on monday"], |
| 81 | + description: 'Only get Docker image updates every 2 weeks to reduce noise', |
| 82 | + matchDatasources: [ |
| 83 | + 'docker', |
| 84 | + ], |
| 85 | + schedule: [ |
| 86 | + 'every 2 week on monday', |
| 87 | + ], |
72 | 88 | enabled: true, |
73 | | - }, { |
74 | | - "description": "Ignore k8s.io/client-go older versions, they switched to semantic version and old tags are still available in the repo", |
75 | | - "matchDatasources": [ |
76 | | - "go" |
77 | | - ], |
78 | | - "matchDepNames": [ |
79 | | - "k8s.io/client-go" |
80 | | - ], |
81 | | - "allowedVersions": "<1.0", |
82 | | - }, { |
83 | | - "description": "Ignore k8s dependencies, should be updated on crossplane-runtime", |
84 | | - "matchDatasources": [ |
85 | | - "go" |
86 | | - ], |
87 | | - "matchPackagePrefixes": [ |
88 | | - "k8s.io", |
89 | | - "sigs.k8s.io" |
90 | | - ], |
91 | | - "enabled": false, |
92 | | - },{ |
93 | | - "description": "Only get dependency digest updates every month to reduce noise, except crossplane-runtime", |
94 | | - "excludePackageNames": ["github.com/crossplane/crossplane-runtime"], |
95 | | - "matchDatasources": [ |
96 | | - "go" |
97 | | - ], |
98 | | - "matchUpdateTypes": [ |
99 | | - "digest", |
100 | | - ], |
101 | | - "extends": ["schedule:monthly"], |
102 | | - }, { |
103 | | - "description": "Ignore oss-fuzz, it's not using tags, we'll stick to master", |
104 | | - "matchDepTypes": [ |
105 | | - "action" |
106 | | - ], |
107 | | - "matchDepNames": [ |
108 | | - "google/oss-fuzz" |
109 | | - ], |
110 | | - "enabled": false |
111 | | - } |
112 | | - ] |
| 89 | + }, |
| 90 | + { |
| 91 | + description: 'Ignore k8s.io/client-go older versions, they switched to semantic version and old tags are still available in the repo', |
| 92 | + matchDatasources: [ |
| 93 | + 'go', |
| 94 | + ], |
| 95 | + matchDepNames: [ |
| 96 | + 'k8s.io/client-go', |
| 97 | + ], |
| 98 | + allowedVersions: '<1.0', |
| 99 | + }, |
| 100 | + { |
| 101 | + description: 'Ignore k8s dependencies, should be updated on crossplane-runtime', |
| 102 | + matchDatasources: [ |
| 103 | + 'go', |
| 104 | + ], |
| 105 | + enabled: false, |
| 106 | + matchPackageNames: [ |
| 107 | + 'k8s.io{/,}**', |
| 108 | + 'sigs.k8s.io{/,}**', |
| 109 | + ], |
| 110 | + }, |
| 111 | + { |
| 112 | + description: 'Only get dependency digest updates every month to reduce noise, except crossplane-runtime', |
| 113 | + matchDatasources: [ |
| 114 | + 'go', |
| 115 | + ], |
| 116 | + matchUpdateTypes: [ |
| 117 | + 'digest', |
| 118 | + ], |
| 119 | + extends: [ |
| 120 | + 'schedule:monthly', |
| 121 | + ], |
| 122 | + matchPackageNames: [ |
| 123 | + '!github.com/crossplane/crossplane-runtime', |
| 124 | + ], |
| 125 | + }, |
| 126 | + { |
| 127 | + description: "Ignore oss-fuzz, it's not using tags, we'll stick to master", |
| 128 | + matchDepTypes: [ |
| 129 | + 'action', |
| 130 | + ], |
| 131 | + matchDepNames: [ |
| 132 | + 'google/oss-fuzz', |
| 133 | + ], |
| 134 | + enabled: false, |
| 135 | + }, |
| 136 | + ], |
113 | 137 | } |
0 commit comments