-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrenovate.json5
60 lines (60 loc) · 2.18 KB
/
renovate.json5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
// see https://docs.renovatebot.com/templates/
// see https://docs.renovatebot.com/modules/manager/
// see https://docs.renovatebot.com/modules/manager/regex/
// see https://docs.renovatebot.com/configuration-options/
{
$schema: "https://docs.renovatebot.com/renovate-schema.json",
enabledManagers: ["terraform", "helm-values", "helmv3", "regex"], // Only enable comments
// flux: {
// fileMatch: ["(apps|core|platform|system)/base/.+\\.yaml$"],
// },
ignorePaths: [
"**/docker-compose/**", // Exclude legacy stacks
"**/helm/maisonneux/**", // Exclude testing charts from previous helmfile
"**/helm/values/**", // Exclude testing values from helmfile
],
customManagers: [
// Manually match missed items
// For dependencies with OCI registries, use datasource=docker
{
customType: "regex",
fileMatch: ["\\.yaml$", "\\.tf$", "\\.sh$", "\\.md$"],
matchStrings: [
"# renovate: datasource=(?<datasource>[^:]+?) depName=(?<depName>.+?)( versioning=(?<versioning>.+?))?( extractVersion=(?<extractVersion>.+?))?( registryUrl=(?<ocimatch>oci:\\/\\/)?(?<registryUrl>.+?))?\\s.+?[:=]\\s*[\"']?(?<currentValue>.+?)[\"']?\\s",
],
registryUrlTemplate: "{{#if ocimatch}}https://{{/if}}{{{registryUrl}}}",
versioningTemplate: "{{#if versioning}}{{{versioning}}}{{else}}semver-coerced{{/if}}",
extractVersionTemplate: "{{#if extractVersion}}{{{extractVersion}}}{{else}}^v?(?<version>.+)${{/if}}",
},
],
packageRules: [
// Use opentofu registry as we use it instead of terraform
{
matchDatasources: ["terraform-provider"],
registryUrls: ["https://registry.opentofu.org"],
},
// Grouping packages for common PRs
// * Helm charts and their CRDs
{
matchPackageNames: ["/external-secrets/"],
groupName: "external-secrets",
},
{
matchPackageNames: ["/mariadb-operator/"],
groupName: "mariadb-operator",
},
// * Terraform providers
{
matchPackageNames: ["proxmox"],
groupName: "proxmox",
},
{
matchPackageNames: ["helm"],
groupName: "helm",
},
{
matchPackageNames: ["kubernetes"],
groupName: "kubernetes",
},
],
}