forked from banzaicloud/koperator
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathrenovate.json
More file actions
282 lines (282 loc) · 13.1 KB
/
Copy pathrenovate.json
File metadata and controls
282 lines (282 loc) · 13.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"forkProcessing": "enabled",
"baseBranchPatterns": ["main", "gh-pages"],
"extends": [
":dependencyDashboard",
":ignoreUnstable",
":prImmediately",
":semanticPrefixFixDepsChoreOthers",
":updateNotScheduled",
":automergeDisabled",
"helpers:disableTypesNodeMajor",
":prHourlyLimitNone",
":prConcurrentLimitNone",
"docker:enableMajor",
"group:allDigest"
],
"customManagers": [
{
"customType": "regex",
"managerFilePatterns": [
"/(^|/)Makefile$/",
"/(^|/)Dockerfile$/",
"/(^|/)\\.github/workflows/regenerate-crd-docs\\.yaml$/",
"/(^|/)scripts/install_kustomize\\.sh$/"
],
"matchStrings": [
"(?<depName>[A-Z][A-Z0-9_]*)_VERSION\\s*=\\s*(?<currentValue>[^\\s]+)\\s*#\\s*renovate:\\s*datasource=(?<datasource>[^\\s]+)\\s*depName=(?<packageName>[^\\s]+)(?:\\s*extractVersion=(?<extractVersion>[^\\s]+))?"
],
"datasourceTemplate": "{{datasource}}",
"depNameTemplate": "{{packageName}}",
"extractVersionTemplate": "{{#if extractVersion}}{{{extractVersion}}}{{/if}}"
},
{
"customType": "regex",
"managerFilePatterns": [
"/tests/e2e/versions\\.go$/"
],
"matchStrings": [
"\\s*(?<depName>\\w+)\\s*=\\s*\"(?<currentValue>[^\"]+)\"\\s*//\\s*renovate:\\s*datasource=(?<datasource>[^\\s]+)\\s*depName=(?<packageName>[^\\s]+)\\s*registryUrl=(?<registryUrl>\\S+)"
],
"datasourceTemplate": "{{datasource}}",
"depNameTemplate": "{{packageName}}",
"registryUrlTemplate": "{{registryUrl}}"
},
{
"customType": "regex",
"managerFilePatterns": [
"/tests/e2e/versions\\.go$/"
],
"description": "Same file as above, but for datasource=docker entries, which have no notion of a Helm repo registryUrl and so never carry one. Kept as a separate manager (RE2 has no lookaround, so the split is done by requiring the literal 'docker' datasource rather than a negative match on registryUrl) so registryUrlTemplate is never evaluated for these - a templated empty string is still a defined (invalid) registryUrl to Renovate, not the same as omitting it.",
"matchStrings": [
"\\s*(?<depName>\\w+)\\s*=\\s*\"(?<currentValue>[^\"]+)\"\\s*//\\s*renovate:\\s*datasource=(?<datasource>docker)\\s*depName=(?<packageName>[^\\s]+)"
],
"datasourceTemplate": "{{datasource}}",
"depNameTemplate": "{{packageName}}"
},
{
"customType": "regex",
"managerFilePatterns": [
"/api/v1beta1/kafkacluster_types\\.go$/"
],
"matchStrings": [
"(?<depName>\\w+)\\s*=\\s*\"[^:]+:(?<currentValue>[^\"]+)\"\\s*//\\s*renovate:\\s*datasource=(?<datasource>\\w+)\\s*depName=(?<packageName>[^\\s]+)"
],
"datasourceTemplate": "{{datasource}}",
"depNameTemplate": "{{packageName}}"
},
{
"customType": "regex",
"managerFilePatterns": [
"/(^|/)\\.github/actions/kind-create/action\\.yaml$/",
"/(^|/)\\.github/workflows/e2e-test\\.yaml$/"
],
"matchStrings": [
"(?:default|version):\\s*'?(?<currentValue>[^\\s'#]+)'?\\s*#\\s*renovate:\\s*datasource=(?<datasource>\\S+)\\s+depName=(?<packageName>\\S+)"
],
"datasourceTemplate": "{{datasource}}",
"depNameTemplate": "{{packageName}}"
},
{
"customType": "regex",
"description": "go install <module>@<version> pins inside composite action shell steps (e.g. .github/actions/kind-create/action.yaml). Not covered by any built-in manager.",
"managerFilePatterns": [
"/(^|/)\\.github/actions/kind-create/action\\.yaml$/"
],
"matchStrings": [
"go install \\S+@(?<currentValue>\\S+)\\s*#\\s*renovate:\\s*datasource=(?<datasource>\\S+)\\s+depName=(?<packageName>\\S+)"
],
"datasourceTemplate": "{{datasource}}",
"depNameTemplate": "{{packageName}}"
},
{
"customType": "regex",
"description": "Docker images embedded as flat 'repo:tag' strings in KafkaCluster sample manifests, benchmark infra YAML, and kustomize strategic-merge patches. The built-in helm-values manager only matches files literally named values.yaml/values.yml with a nested {repository,tag} shape, kustomize only reads the kustomization.yaml 'images:' transformer (unused in this repo), and the kubernetes manager has no default managerFilePatterns and is not configured here - so none of these were previously watched.",
"managerFilePatterns": [
"/(^|/)config/samples/.*\\.yaml$/",
"/(^|/)docs/benchmarks/infrastructure/.*\\.yaml$/",
"/(^|/)tests/e2e/templates/.*\\.tmpl$/",
"/(^|/)config/base/manager/manager\\.yaml$/",
"/(^|/)config/overlays/.*/manager_auth_proxy_patch\\.yaml$/",
"/(^|/)hack/kafka-test-pod/manifest_certmanager\\.yaml$/"
],
"matchStrings": [
"[\"']?[a-zA-Z0-9-]+(?:\\.[a-zA-Z0-9-]+)*(?:/[a-zA-Z0-9._-]+)+:(?<currentValue>[a-zA-Z0-9._-]+)[\"']?\\s*#\\s*renovate:\\s*datasource=(?<datasource>\\S+)\\s+depName=(?<packageName>\\S+)"
],
"datasourceTemplate": "{{datasource}}",
"depNameTemplate": "{{packageName}}"
},
{
"customType": "regex",
"description": "Docker images embedded as nested helm-style {repository, tag} blocks in tests/e2e/templates/*.tmpl fixtures. The .tmpl extension is never matched by the built-in helm-values manager (values.yaml/.yml only), even though the shape matches.",
"managerFilePatterns": [
"/(^|/)tests/e2e/templates/.*\\.tmpl$/"
],
"matchStrings": [
"tag:\\s*(?<currentValue>\\S+)\\s*#\\s*renovate:\\s*datasource=(?<datasource>\\S+)\\s+depName=(?<packageName>\\S+)"
],
"datasourceTemplate": "{{datasource}}",
"depNameTemplate": "{{packageName}}"
}
],
"packageRules": [
{
"matchManagers": [
"gomod"
],
"matchBaseBranches": ["main"],
"enabled": false,
"description": "Disable Go module updates on main - handled by automated workflow: .github/workflows/update-go-deps.yml. gh-pages' go.mod is Hugo Modules (theme deps like docsy), not app code, so it stays enabled there."
},
{
"matchManagers": [
"gomod"
],
"matchDepNames": ["go"],
"matchBaseBranches": ["main"],
"enabled": true,
"rangeStrategy": "bump",
"postUpdateOptions": ["gomodTidy"],
"description": "Re-enable just the 'go' directive (depName 'go', covers a future 'toolchain' directive too) so go.mod's Go version tracks upstream instead of drifting from the Dockerfile's golang image, which bumps independently (see PR #302). rangeStrategy=bump: default 'replace' treats 'go X.Y.Z' as a caret range, so newer releases always 'satisfy' it and no update is ever proposed. postUpdateOptions=gomodTidy: without it Renovate only runs 'go get', not 'go mod tidy', and CI's tidy-check job would reject the PR."
},
{
"matchCategories": [
"docker"
],
"pinDigests": true
},
{
"groupName": "config samples docker images",
"groupSlug": "config-samples-docker",
"description": "Was scoped to matchManagers: [helm-values], but that manager only reads files literally named values.yaml/values.yml with a nested {repository,tag} shape - it never matched anything under these paths, so this rule was a no-op. The images here are now tracked via explicit '# renovate:' comment annotations (custom.regex manager); see the customManagers entries covering config/samples, docs/benchmarks/infrastructure, tests/e2e/templates, config/base/manager, config/overlays, and hack/kafka-test-pod.",
"matchFileNames": [
"config/samples/**",
"docs/benchmarks/infrastructure/**",
"tests/e2e/templates/**",
"config/base/manager/**",
"config/overlays/**",
"hack/kafka-test-pod/**"
],
"matchManagers": [
"custom.regex"
],
"matchUpdateTypes": [
"major",
"minor",
"patch"
]
},
{
"matchPackageNames": [
"apache/kafka"
],
"allowedVersions": "<4.0.0",
"description": "Kafka 4.x drops ZooKeeper support (KRaft-only) and needs an operator-side migration. Keep Renovate on the 3.x line until docker/kafka/Dockerfile is ready for that jump, then remove this rule."
},
{
"matchCurrentValue": "/^\\d+\\.\\d+\\.\\d+-ado?be-\\d+$/",
"versioning": "regex:^(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?:-ado?be-(?<build>\\d+))?$",
"description": "Self-scoping: applies to ANY docker dep whose current pin is <semver>-adbe|adobe-<yyyymmdd> (cruise-control uses 'adbe', zookeeper-operator 'adobe'; new adobe-fork images inherit this with no config change). Default docker versioning treats that suffix as an immutable compatibility string, so newer daily builds are never offered; capturing the date as a purely-numeric 'build' (handled like patch) makes e.g. 3.0.3-adbe-20250804 -> 3.0.3-adbe-20260722 and 0.2.15-adobe-20250923 track their newest build. matchCurrentValue requires the suffix, so only these deps are touched; the versioning's suffix is optional so the same image can still publish a plain-semver tag. Trailing '$' excludes '-rc'."
},
{
"matchDatasources": [
"docker"
],
"matchPackageNames": [
"ghcr.io/adobe/zookeeper-operator/zookeeper"
],
"allowedVersions": "/^\\d+\\.\\d+\\.\\d+-\\d+\\.\\d+\\.\\d+-adobe-\\d{8}$/",
"versioning": "loose"
},
{
"matchPackageNames": [
"ghcr.io/adobe/koperator/kafka"
],
"matchCurrentValue": "/^\\d+\\.\\d+-\\d+\\.\\d+\\.\\d+(-jdk\\d+\\.\\d+\\.\\d+)?$/",
"versioning": "regex:^(?<compatibility>\\d+\\.\\d+)-(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?:-jdk(?<build>\\d+)\\.\\d+\\.(?<revision>\\d+))?$",
"description": "Tag format is <scala_version>-<kafka_version>[-jdk<jdk_version>], e.g. 2.13-3.9.1 or 2.13-3.9.2-jdk21.0.11 (the latter shape shipped starting with the 3.9.2 release tag). Verified live against ghcr.io: default docker versioning parses currentVersion as just '2.13' and silently drops everything after the first hyphen, so Renovate can never see a real 3.9.1->3.9.2 bump (only digest-pin updates fire, via the docker pinDigests rule below) - this affects every '# renovate:' annotated occurrence of this image. Pinning the scala prefix as 'compatibility' (never auto-changed) and parsing the kafka release as major.minor.patch fixes real version comparison. The optional '-jdk<major>.<interim>.<update>' suffix maps jdk major to 'build' and jdk update to 'revision' (Renovate's regex versioning caps out at 5 numeric levels: major/minor/patch/build/revision, each required to be purely numeric, so the always-0 jdk interim segment is matched but not captured); tags without the suffix default build/revision to 0 and still compare correctly against suffixed ones since a differing kafka patch alone already resolves ordering. This does NOT gate jdk-major jumps (e.g. jdk21.x -> jdk25.x) the way 'compatibility' gates scala - that's covered by the same operator-side migration as the apache/kafka 4.x bump below (see docker/kafka/Dockerfile's java_version comment); revisit if jdk25 lands before that migration."
},
{
"groupName": "kafka docker images (major)",
"groupSlug": "kafka-docker-major",
"matchFileNames": [
"docker/**"
],
"matchManagers": [
"dockerfile",
"custom.regex"
],
"matchUpdateTypes": [
"major"
]
},
{
"groupName": "kafka docker images (minor/patch)",
"groupSlug": "kafka-docker-minor-patch",
"matchFileNames": [
"docker/**"
],
"matchManagers": [
"dockerfile",
"custom.regex"
],
"matchUpdateTypes": [
"minor",
"patch"
]
},
{
"groupName": "all major dependencies",
"groupSlug": "all-major",
"matchUpdateTypes": [
"major"
],
"matchManagers": [
"github-actions",
"maven",
"dockerfile",
"docker-compose",
"custom.regex",
"helm-values",
"gomod"
],
"commitMessagePrefix": "chore(deps):",
"commitMessageAction": "update",
"commitMessageTopic": "all major dependencies",
"commitMessageExtra": ""
},
{
"groupName": "all non-major dependencies",
"groupSlug": "all-minor-patch",
"matchUpdateTypes": [
"minor",
"patch",
"digest"
],
"matchManagers": [
"github-actions",
"maven",
"dockerfile",
"docker-compose",
"custom.regex",
"helm-values",
"docker",
"gomod"
],
"commitMessagePrefix": "chore(deps):",
"commitMessageAction": "update",
"commitMessageTopic": "all non-major dependencies",
"commitMessageExtra": ""
},
{
"matchBaseBranches": ["gh-pages"],
"groupName": "gh-pages dependencies",
"groupSlug": "gh-pages-deps",
"commitMessagePrefix": "chore(deps):",
"commitMessageAction": "update",
"commitMessageTopic": "gh-pages dependencies",
"commitMessageExtra": ""
}
]
}