Track all version of kubernetes with renovate (including rke2 suffix)

close #105 (closed)

Today we define rke2 version with the following format: x.y.z-rke2rA when upstream release are define like this: x.y.z+rke2rA I haven't find a way to transform some character with renovate to properly track theses version.

This MR suggestion is to use the same format as upstream release in our gitlab-ci variable definition. Adapt our current code to handle properly theses + as we can't push an OCI artifact with a + in his tag.

Also it update the renovate configuration to track both K8S & RKE2 version and track the suffix of the rke2 version.

This is done in 2 parts:

  1. update the regex of the custom manager to match the whole version (including the suffix if defined) see: https://regex101.com/r/rzzN26/1
  2. define a specific package rule for rke2 update, where we manually define the versioning to use instead of relying on renovate to find the correct one (see: https://regex101.com/r/MTGXCI/1)

in this versioning we specify to renovate where he can find the major, minor, patch and build in our version

versioning documentation: https://docs.renovatebot.com/modules/versioning/regex/

This was manually tested on a fork repo:

image

image

image

Edited by Loic Nicolle

Merge request reports

Loading