|
5 | 5 | ':semanticCommitsDisabled', |
6 | 6 | 'customManagers:githubActionsVersions', |
7 | 7 | ], |
8 | | - labels: ['dependencies'], |
9 | | - postUpdateOptions: ['gomodTidy'], |
| 8 | + labels: [ |
| 9 | + 'dependencies', |
| 10 | + ], |
| 11 | + postUpdateOptions: [ |
| 12 | + 'gomodTidy', |
| 13 | + ], |
10 | 14 | automergeStrategy: 'squash', |
11 | 15 | // required for automerging patch updates |
12 | 16 | separateMinorPatch: true, |
13 | 17 | kubernetes: { |
14 | | - fileMatch: ['\\.yaml$'], |
| 18 | + managerFilePatterns: [ |
| 19 | + '/\\.yaml$/', |
| 20 | + ], |
15 | 21 | }, |
16 | 22 | customManagers: [ |
17 | 23 | { |
18 | 24 | // generic detection for install manifests from GitHub releases |
19 | 25 | customType: 'regex', |
20 | | - fileMatch: ['kustomization\\.yaml$'], |
21 | | - matchStrings: ['https://github\\.com/(?<depName>.*/.*?)/releases/download/(?<currentValue>.*?)/'], |
| 26 | + managerFilePatterns: [ |
| 27 | + '/kustomization\\.yaml$/', |
| 28 | + ], |
| 29 | + matchStrings: [ |
| 30 | + 'https://github\\.com/(?<depName>.*/.*?)/releases/download/(?<currentValue>.*?)/', |
| 31 | + ], |
22 | 32 | datasourceTemplate: 'github-releases', |
23 | 33 | }, |
24 | 34 | { |
25 | 35 | // generic detection for raw manifests from GitHub refs |
26 | 36 | customType: 'regex', |
27 | | - fileMatch: ['kustomization\\.yaml$'], |
28 | | - matchStrings: ['https://raw.githubusercontent.com/(?<depName>.*?/.*?)/(?<currentValue>.*?)/'], |
| 37 | + managerFilePatterns: [ |
| 38 | + '/kustomization\\.yaml$/', |
| 39 | + ], |
| 40 | + matchStrings: [ |
| 41 | + 'https://raw.githubusercontent.com/(?<depName>.*?/.*?)/(?<currentValue>.*?)/', |
| 42 | + ], |
29 | 43 | datasourceTemplate: 'github-releases', |
30 | 44 | }, |
31 | 45 | { |
32 | 46 | // update `_VERSION` variables in Makefiles and scripts |
33 | 47 | // inspired by `regexManagers:dockerfileVersions` preset |
34 | 48 | customType: 'regex', |
35 | | - fileMatch: ['Makefile$', '\\.mk$', '\\.sh$'], |
| 49 | + managerFilePatterns: [ |
| 50 | + '/Makefile$/', |
| 51 | + '/\\.mk$/', |
| 52 | + '/\\.sh$/', |
| 53 | + ], |
36 | 54 | matchStrings: [ |
37 | 55 | '# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: registryUrl=(?<registryUrl>[^\\s]+?))?\\s.+?_VERSION *[?:]?= *"?(?<currentValue>.+?)"?\\s', |
38 | 56 | ], |
|
41 | 59 | packageRules: [ |
42 | 60 | { |
43 | 61 | // disable update of dependency on the main module |
44 | | - matchPackageNames: ['github.com/timebertt/kubernetes-controller-sharding'], |
| 62 | + matchPackageNames: [ |
| 63 | + 'github.com/timebertt/kubernetes-controller-sharding', |
| 64 | + ], |
45 | 65 | enabled: false, |
46 | 66 | }, |
47 | 67 | { |
48 | 68 | // automerge non-major updates except 0.* versions |
49 | 69 | // similar to :automergeStableNonMajor preset, but also works for versioning schemes without range support |
50 | | - matchUpdateTypes: ['minor', 'patch'], |
| 70 | + matchUpdateTypes: [ |
| 71 | + 'minor', |
| 72 | + 'patch', |
| 73 | + ], |
51 | 74 | matchCurrentVersion: '!/^v?0\\./', |
52 | 75 | automerge: true, |
53 | 76 | }, |
54 | 77 | { |
55 | 78 | // automerge patch updates |
56 | | - matchUpdateTypes: ['patch'], |
| 79 | + matchUpdateTypes: [ |
| 80 | + 'patch', |
| 81 | + ], |
57 | 82 | automerge: true, |
58 | 83 | }, |
59 | 84 | { |
60 | 85 | // automerge non-major golang.org/x updates |
61 | | - matchDatasources: ['go'], |
62 | | - matchPackageNames: ['golang.org/x/*'], |
63 | | - matchUpdateTypes: ['minor', 'patch', 'digest'], |
| 86 | + matchDatasources: [ |
| 87 | + 'go', |
| 88 | + ], |
| 89 | + matchPackageNames: [ |
| 90 | + 'golang.org/x/*', |
| 91 | + ], |
| 92 | + matchUpdateTypes: [ |
| 93 | + 'minor', |
| 94 | + 'patch', |
| 95 | + 'digest', |
| 96 | + ], |
64 | 97 | automerge: true, |
65 | 98 | }, |
66 | 99 | { |
67 | 100 | // disable automerge for go minor updates |
68 | | - matchDatasources: ['golang-version'], |
69 | | - matchUpdateTypes: ['minor'], |
| 101 | + matchDatasources: [ |
| 102 | + 'golang-version', |
| 103 | + ], |
| 104 | + matchUpdateTypes: [ |
| 105 | + 'minor', |
| 106 | + ], |
70 | 107 | automerge: false, |
71 | 108 | }, |
72 | 109 | { |
73 | 110 | // bump k8s and controller-runtime go dependencies together |
74 | 111 | groupName: 'k8s packages', |
75 | 112 | groupSlug: 'k8s-go', |
76 | | - matchDatasources: ['go'], |
| 113 | + matchDatasources: [ |
| 114 | + 'go', |
| 115 | + ], |
77 | 116 | matchPackageNames: [ |
78 | 117 | // from "group:kubernetes" |
79 | 118 | 'k8s.io/api', |
|
110 | 149 | // disable automerge for k8s minor updates |
111 | 150 | matchPackageNames: [ |
112 | 151 | // datasource=go |
113 | | - 'k8s.io/*', // includes more than the k8s-go group! (e.g., k8s.io/utils) |
| 152 | + 'k8s.io/**', // includes more than the k8s-go group! (e.g., k8s.io/utils) |
114 | 153 | 'sigs.k8s.io/controller-runtime', |
115 | 154 | // datasource=github-releases |
116 | 155 | 'kubernetes/kubernetes', |
117 | 156 | 'kubernetes-sigs/controller-tools', |
118 | 157 | ], |
119 | | - matchUpdateTypes: ['minor'], |
| 158 | + matchUpdateTypes: [ |
| 159 | + 'minor', |
| 160 | + ], |
120 | 161 | automerge: false, |
121 | 162 | }, |
122 | 163 | { |
123 | 164 | // automerge k8s.io/utils updates |
124 | | - matchDatasources: ['go'], |
125 | | - matchPackageNames: ['k8s.io/utils'], |
126 | | - matchUpdateTypes: ['digest'], |
| 165 | + matchDatasources: [ |
| 166 | + 'go', |
| 167 | + ], |
| 168 | + matchPackageNames: [ |
| 169 | + 'k8s.io/utils', |
| 170 | + ], |
| 171 | + matchUpdateTypes: [ |
| 172 | + 'digest', |
| 173 | + ], |
127 | 174 | automerge: true, |
128 | 175 | }, |
129 | 176 | { |
130 | 177 | // jsonpatch major version has to be kept in sync with k8s and controller-runtime dependencies |
131 | | - matchDatasources: ['go'], |
132 | | - matchPackageNames: ['gomodules.xyz/jsonpatch/*'], |
133 | | - matchUpdateTypes: ['major'], |
134 | | - enabled: false |
| 178 | + matchDatasources: [ |
| 179 | + 'go', |
| 180 | + ], |
| 181 | + matchPackageNames: [ |
| 182 | + 'gomodules.xyz/jsonpatch/*', |
| 183 | + ], |
| 184 | + matchUpdateTypes: [ |
| 185 | + 'major', |
| 186 | + ], |
| 187 | + enabled: false, |
135 | 188 | }, |
136 | 189 | { |
137 | 190 | // kind minor k8s version should be updated together with shoot k8s version |
138 | | - matchPackageNames: ['kindest/node'], |
139 | | - matchUpdateTypes: ['minor'], |
| 191 | + matchPackageNames: [ |
| 192 | + 'kindest/node', |
| 193 | + ], |
| 194 | + matchUpdateTypes: [ |
| 195 | + 'minor', |
| 196 | + ], |
140 | 197 | enabled: false, |
141 | 198 | }, |
142 | 199 | // don't add internal dependency updates to release notes |
143 | 200 | { |
144 | | - matchFileNames: ["hack/config/**", "hack/tools.mk"], |
145 | | - matchPackageNames: ["!kubernetes-sigs/controller-tools", "!ko-build/ko"], |
146 | | - addLabels: ['no-release-note'] |
| 201 | + matchFileNames: [ |
| 202 | + 'hack/config/**', |
| 203 | + 'hack/tools.mk', |
| 204 | + ], |
| 205 | + matchPackageNames: [ |
| 206 | + '!kubernetes-sigs/controller-tools', |
| 207 | + '!ko-build/ko', |
| 208 | + ], |
| 209 | + addLabels: [ |
| 210 | + 'no-release-note', |
| 211 | + ], |
147 | 212 | }, |
148 | 213 | { |
149 | | - matchDatasources: ['go'], |
150 | | - matchPackageNames: ['github.com/onsi/gomega', 'github.com/onsi/ginkgo/*', 'k8s.io/utils'], |
151 | | - addLabels: ['no-release-note'] |
| 214 | + matchDatasources: [ |
| 215 | + 'go', |
| 216 | + ], |
| 217 | + matchPackageNames: [ |
| 218 | + 'github.com/onsi/gomega', |
| 219 | + 'github.com/onsi/ginkgo/*', |
| 220 | + 'k8s.io/utils', |
| 221 | + ], |
| 222 | + addLabels: [ |
| 223 | + 'no-release-note', |
| 224 | + ], |
152 | 225 | }, |
153 | 226 | { |
154 | 227 | // combine upgrade of manifests and image tag in one PR |
155 | 228 | groupName: 'external-dns', |
156 | | - matchPackageNames: ['/external-dns/'], |
| 229 | + matchPackageNames: [ |
| 230 | + '/external-dns/', |
| 231 | + ], |
157 | 232 | }, |
158 | 233 | { |
159 | 234 | // special case for ingress-nginx: version is prefixed with `controller-` |
160 | | - matchDatasources: ['github-releases'], |
161 | | - matchPackageNames: ['kubernetes/ingress-nginx'], |
| 235 | + matchDatasources: [ |
| 236 | + 'github-releases', |
| 237 | + ], |
| 238 | + matchPackageNames: [ |
| 239 | + 'kubernetes/ingress-nginx', |
| 240 | + ], |
162 | 241 | versionCompatibility: '^(?<compatibility>.*)-(?<version>.+)$', |
163 | 242 | }, |
164 | 243 | { |
165 | 244 | // manual action required: upgrading kube-prometheus is not fully automated yet |
166 | | - matchDatasources: ['github-releases'], |
167 | | - matchPackageNames: ['prometheus-operator/kube-prometheus'], |
| 245 | + matchDatasources: [ |
| 246 | + 'github-releases', |
| 247 | + ], |
| 248 | + matchPackageNames: [ |
| 249 | + 'prometheus-operator/kube-prometheus', |
| 250 | + ], |
168 | 251 | prHeader: '⚠️ Manual action required ⚠️\nPlease check this PR out and run `hack/config/monitoring/update.sh`.', |
169 | 252 | }, |
170 | 253 | { |
171 | 254 | // kube-prometheus manifests are generated and managed by update.sh, disable renovate bumps |
172 | | - matchFileNames: ['hack/config/monitoring/{crds,kube-prometheus}/**'], |
| 255 | + matchFileNames: [ |
| 256 | + 'hack/config/monitoring/{crds,kube-prometheus}/**', |
| 257 | + ], |
173 | 258 | enabled: false, |
174 | 259 | }, |
175 | 260 | // help renovate fetch changelogs for packages that don't have any sourceUrl metadata attached |
176 | 261 | { |
177 | | - matchPackageNames: ['registry.k8s.io/prometheus-adapter/prometheus-adapter'], |
| 262 | + matchPackageNames: [ |
| 263 | + 'registry.k8s.io/prometheus-adapter/prometheus-adapter', |
| 264 | + ], |
178 | 265 | changelogUrl: 'https://github.com/kubernetes-sigs/prometheus-adapter', |
179 | 266 | }, |
180 | 267 | { |
181 | | - matchPackageNames: ['registry.k8s.io/kube-state-metrics/kube-state-metrics'], |
| 268 | + matchPackageNames: [ |
| 269 | + 'registry.k8s.io/kube-state-metrics/kube-state-metrics', |
| 270 | + ], |
182 | 271 | changelogUrl: 'https://github.com/kubernetes/kube-state-metrics', |
183 | 272 | }, |
184 | 273 | { |
185 | | - matchPackageNames: ['quay.io/brancz/kube-rbac-proxy'], |
| 274 | + matchPackageNames: [ |
| 275 | + 'quay.io/brancz/kube-rbac-proxy', |
| 276 | + ], |
186 | 277 | changelogUrl: 'https://github.com/brancz/kube-rbac-proxy', |
187 | 278 | }, |
188 | 279 | ], |
|
0 commit comments