Skip to content

Commit fce36eb

Browse files
chore: improve ac release automation (#2186)
- Modify renovate rules so each AC chart groups prs for each chart, will allow us to maintain the current testing. - Add renovate rules to bump chart dependencies that are not declared under chart dependencies due to how AC deployment works example of how it would look like https://github.com/gsanchezgavier/helm-charts/pulls
1 parent 6a9affb commit fce36eb

File tree

2 files changed

+22
-8
lines changed

2 files changed

+22
-8
lines changed

.github/renovate.json5

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
"github>newrelic/k8s-agents-automation:renovate-base.json5"
44
],
55
"bumpVersion": "patch",
6+
"customManagers": [
7+
{
8+
"customType": "regex",
9+
"fileMatch": ["charts/agent-control-bootstrap/Chart.yaml"],
10+
"datasourceTemplate": "helm",
11+
"registryUrlTemplate": "https://helm-charts.newrelic.com",
12+
"matchStrings": [
13+
"# renovate: chartName=(?<depName>\\S+)\\n[^:]+: (?<currentValue>\\S+)"
14+
]
15+
}
16+
],
617
"packageRules": [
718
// This is a shared repository where it is not clear that generic rules apply
819
// Making rules per folders or properties runs the risk that future
@@ -59,7 +70,7 @@
5970
{
6071
// Auto-bump chart version when Renovate updates chart values files. These updates
6172
// are usually container tag updates.
62-
"matchFileNames": ["charts/*/values.yaml"],
73+
"matchFileNames": ["charts/*/values.yaml", "charts/*/Chart.yaml"],
6374
"bumpVersions": [
6475
{
6576
"filePatterns": ["{{packageFileDir}}/Chart.{yaml,yml}"],
@@ -69,11 +80,14 @@
6980
]
7081
},
7182
{
72-
"matchFileNames": [
73-
"charts/agent-control-deployment/**",
74-
"charts/agent-control-bootstrap/**"
75-
],
76-
"groupName": "agent-control release"
83+
"matchFileNames": ["charts/agent-control-deployment/**"],
84+
"groupName": "agent-control-deployment dependencies",
85+
"groupSlug": "agent-control-deployment-dependencies"
86+
},
87+
{
88+
"matchFileNames": ["charts/agent-control-bootstrap/**"],
89+
"groupName": "agent-control-bootstrap dependencies",
90+
"groupSlug": "agent-control-bootstrap-dependencies"
7791
}
7892
]
7993
}

charts/agent-control-bootstrap/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ description: Bootstraps New Relic' Agent Control
44

55
type: application
66
version: 1.7.0
7-
# agent-control-deployment chart default version.
7+
# renovate: chartName=agent-control-deployment
88
appVersion: 1.6.0
99
annotations:
10-
# agent-control-cd chart default version.
10+
# renovate: chartName=agent-control-cd
1111
agentControlCdVersion: 1.0.0
1212

1313

0 commit comments

Comments
 (0)