From 9aeb77cc6b28922151df4d9f653251ad519c47f5 Mon Sep 17 00:00:00 2001 From: mueller-ma <mueller-ma@users.noreply.github.com> Date: Mon, 26 Aug 2024 13:10:54 +0200 Subject: [PATCH] feat(presets/workarounds): add `rancher/rke2` versioning (#31020) --- lib/config/presets/internal/workarounds.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/lib/config/presets/internal/workarounds.ts b/lib/config/presets/internal/workarounds.ts index 53ef59c34a..8b17b6cced 100644 --- a/lib/config/presets/internal/workarounds.ts +++ b/lib/config/presets/internal/workarounds.ts @@ -22,6 +22,7 @@ export const presets: Record<string, Preset> = { 'workarounds:containerbase', 'workarounds:bitnamiDockerImageVersioning', 'workarounds:k3sKubernetesVersioning', + 'workarounds:rke2KubernetesVersioning', ], ignoreDeps: [], // Hack to improve onboarding PR description }, @@ -200,6 +201,17 @@ export const presets: Record<string, Preset> = { }, ], }, + rke2KubernetesVersioning: { + description: 'Use custom regex versioning for rancher/rke2', + packageRules: [ + { + matchDatasources: ['github-releases'], + matchPackageNames: ['rancher/rke2'], + versioning: + 'regex:^v(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)(?:-(?<prerelease>[a-z]+\\d+))?(?<compatibility>\\+rke2r)(?<build>\\d+)$', + }, + ], + }, supportRedHatImageVersion: { description: 'Use specific versioning for Red Hat-maintained container images.', -- GitLab