Skip to content
Snippets Groups Projects
Unverified Commit 9aeb77cc authored by mueller-ma's avatar mueller-ma Committed by GitHub
Browse files

feat(presets/workarounds): add `rancher/rke2` versioning (#31020)

parent 3ee49b69
No related merge requests found
......@@ -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.',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment