Skip to content

Commit c3d2972

Browse files
committed
feat(docs): add section about bumping Cluster imageName using renovate
Signed-off-by: RockWolf <git@rockwolf.eu>
1 parent f7e28ca commit c3d2972

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,33 @@ cosign verify IMAGE \
243243
For detailed instructions on building PostgreSQL container images, refer to the
244244
[BUILD.md](BUILD.md) file.
245245

246+
## Automatic Updating using Renovate
247+
248+
[Renovate](https://github.com/renovatebot/renovate) can be used to automatically update various dependencies.
249+
As CloudNativePG's `Cluster` CRDs are not automatically picked up by renovate a custom regex manager must be configured:
250+
251+
```json5
252+
{
253+
customManagers: [
254+
{
255+
// cloudnative-pg instance version
256+
customType: 'regex',
257+
managerFilePatterns: [
258+
'/\\.yaml$/',
259+
],
260+
matchStrings: [
261+
'imageName: (?<depName>\\S+):(?<currentValue>\\S+)@(?<currentDigest>sha256:[a-f0-9]+)',
262+
],
263+
datasourceTemplate: 'docker',
264+
// matches: 17.6-202509151215-minimal-trixie
265+
versioningTemplate: 'regex:^(?<major>\\d+)\\.(?<minor>\\d+)-(?<patch>\\d+)-(?<compatibility>\\S+)$',
266+
}
267+
]
268+
}
269+
```
270+
271+
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.
272+
246273
## License and copyright
247274

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

0 commit comments

Comments
 (0)