Skip to content

Commit 4cf4337

Browse files
DerRockWolfmnencia
authored andcommitted
feat(docs): add section about bumping Cluster imageName using renovate
Signed-off-by: RockWolf <git@rockwolf.eu>
1 parent 33c865d commit 4cf4337

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,33 @@ vulnerabilities before they are published or deployed:
261261
For detailed instructions on building PostgreSQL container images, refer to the
262262
[BUILD.md](BUILD.md) file.
263263

264+
## Automatic Updating using Renovate
265+
266+
[Renovate](https://github.com/renovatebot/renovate) can be used to automatically update various dependencies.
267+
As CloudNativePG's `Cluster` CRDs are not automatically picked up by renovate a custom regex manager must be configured:
268+
269+
```json5
270+
{
271+
customManagers: [
272+
{
273+
// cloudnative-pg instance version
274+
customType: 'regex',
275+
managerFilePatterns: [
276+
'/\\.yaml$/',
277+
],
278+
matchStrings: [
279+
'imageName: (?<depName>\\S+):(?<currentValue>\\S+)@(?<currentDigest>sha256:[a-f0-9]+)',
280+
],
281+
datasourceTemplate: 'docker',
282+
// matches: 17.6-202509151215-minimal-trixie
283+
versioningTemplate: 'regex:^(?<major>\\d+)\\.(?<minor>\\d+)-(?<patch>\\d+)-(?<compatibility>\\S+)$',
284+
}
285+
]
286+
}
287+
```
288+
289+
Renovate will never change the `compatibility` part of the tag! So bumping from e.g., `trixie` to the next debian release must be done manually.
290+
264291
## License and copyright
265292

266293
This software is available under [Apache License 2.0](LICENSE).

0 commit comments

Comments
 (0)