Skip to content

Commit 2bd5996

Browse files
committed
chore: fix up renovate rules for OpenStack Helm
Updated the renovate rules and moved them to their own file to detect the Helm chart changes in the OpenStack Helm project.
1 parent ab640eb commit 2bd5996

File tree

2 files changed

+26
-11
lines changed

2 files changed

+26
-11
lines changed

.github/renovate.json

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"extends": [
55
"github>rackerlabs/understack//.github/renovate/default",
66
"github>rackerlabs/understack//.github/renovate/nautobot",
7-
"github>rackerlabs/understack//.github/renovate/understackContainerMatch"
7+
"github>rackerlabs/understack//.github/renovate/understackContainerMatch",
8+
"github>rackerlabs/understack//.github/renovate/matchOpenStackHelm"
89
],
910
"packageRules": [
1011
{
@@ -16,16 +17,6 @@
1617
}
1718
],
1819
"customManagers": [
19-
{
20-
"customType": "regex",
21-
"managerFilePatterns": [
22-
"/apps/appsets/openstack.yaml$/"
23-
],
24-
"matchStrings": [
25-
"\\s- component: (?<depName>.+)\\n\\s+repoURL: (?<packageName>.+)\\n\\s+chartVersion: (?<currentValue>.+)\\s"
26-
],
27-
"datasourceTemplate": "helm"
28-
},
2920
{
3021
"customType": "regex",
3122
"managerFilePatterns": [
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"customManagers": [
4+
{
5+
"customType": "regex",
6+
"managerFilePatterns": [
7+
"/apps/.*\\.ya?ml$"
8+
],
9+
"matchStrings": [
10+
"['\"]?component:\\s['\"]?(?<depName>)['\"]?\\s*(?:repoUrl:\\s['\"]?(?<repoUrl>.*?)?['\"]\\s*chartVersion:\\s['\"]?(?<currentValue>.*?)['\"]?"
11+
],
12+
"datasourceTemplate": "helm",
13+
"registryUrlTemplate": "{{#if repoUrl }}{{repoUrl}}{{else}}https://tarballs.opendev.org/openstack/openstack-helm{{/if}}",
14+
"packageNameTemplate": "openstack-helm/{{depName}}",
15+
"versioningTemplate": "helm"
16+
}
17+
],
18+
"packageRules": [
19+
{
20+
"matchPackageNames": ["openstack-helm/**"],
21+
"groupName": "openstack-helm"
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)