Skip to content

Commit 7c92906

Browse files
authored
Add Renovate custom manager for apt deps (#41)
* Add custom renovate manager for handling apt deps in helm values * Use json5 format for renovate config * Add predefined managers; enable branch & commit prefixes * Bump chart version
1 parent b1b1e09 commit 7c92906

File tree

4 files changed

+27
-7
lines changed

4 files changed

+27
-7
lines changed

charts/relution/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ sources:
1111

1212
type: application
1313

14-
version: 2.7.0-1
14+
version: 2.7.1-1
1515

1616
appVersion: "5.34.0"
1717

charts/relution/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ s2s:
217217
pullPolicy: IfNotPresent
218218
tag: "24.04"
219219
packages:
220+
# renovate: suite=noble depName=strongswan
220221
strongswan: "5.9.13-2ubuntu4"
222+
# renovate: suite=noble depName=iptables
221223
iptables: "1.8.10-3ubuntu2"
222224
livenessProbe:
223225
enabled: true

renovate.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

renovate.json5

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+
"extends": [
4+
"config:recommended",
5+
"customManagers:dockerfileVersions",
6+
"customManagers:helmChartYamlAppVersions"
7+
],
8+
9+
"branchPrefix": "deps/",
10+
"semanticCommits": "enabled",
11+
12+
"customManagers": [
13+
{
14+
"description": "Ubuntu package versions in Helm values", // adapted from https://docs.renovatebot.com/modules/datasource/deb/#usage-example
15+
"customType": "regex",
16+
"fileMatch": ["(^|/)values(\\.[-\\w]+)*\\.ya?ml$"],
17+
"matchStrings": [
18+
"#\\s*renovate:\\s*suite=(?<suite>\\S+)(?:\\s+arch=(?<arch>\\S+))?\\s+depName=(?<depName>\\S+)\\s*\\n\\s*(?<packageName>\\S+):\\s*\"(?<currentValue>[^\"]+)\""
19+
],
20+
"registryUrlTemplate": "https://archive.ubuntu.com/ubuntu?suite={{suite}}&components=main,restricted,universe,multiverse&binaryArch={{#if arch}}{{arch}}{{else}}amd64{{/if}}",
21+
"datasourceTemplate": "deb"
22+
}
23+
]
24+
}

0 commit comments

Comments
 (0)