some simplifications

This commit is contained in:
Kjeld Schouten
2024-10-18 13:15:11 +02:00
parent 5d89bfa73c
commit 010bdbc681
5 changed files with 34 additions and 27 deletions
+3 -3
View File
@@ -8,9 +8,9 @@
"docker-compose\\.ya?ml\\.j2$", // Matches Jinja2 templated docker-compose files
"\\.github/workflows/.*\\.ya?ml$", // Matches all workflow YAML files
"\\.github/workflows/.*\\.ya?ml\\.j2$", // Matches Jinja2 templated workflow files
// "(^|/)clusters/.+\\.ya?ml(?:\\.j2)?$",
// "(^|/)repositories/.+\\.ya?ml(?:\\.j2)?$",
// "(^|/)clustertool/embeded/.+\\.ya?ml(?:\\.j2)?$"
// "(^|/)clusters/.+\\.ya?ml$",
// "(^|/)repositories/.+\\.ya?ml$",
// "(^|/)clustertool/embeded/.+\\.ya?ml$"
],
"branchPrefix": "docker-",
"enabled": true, // Enable Docker image updates
+3 -3
View File
@@ -3,9 +3,9 @@
"flux": {
"fileMatch": [
"(^|/)clusters/.+\\.ya?ml(?:\\.j2)?$",
"(^|/)repositories/.+\\.ya?ml(?:\\.j2)?$",
"(^|/)kubernetes/.+\\.ya?ml(?:\\.j2)?$"
"(^|/)clusters/.+\\.ya?ml$",
"(^|/)repositories/.+\\.ya?ml$",
"(^|/)kubernetes/.+\\.ya?ml$"
],
"enabled": true, // Enable Flux updates
"updateTypes": ["major", "minor", "patch"], // Allow updates for all version types
+4 -4
View File
@@ -3,10 +3,10 @@
"helm-values": {
"fileMatch": [
"(^|/)clusters/.+\\-values\\.ya?ml(?:\\.j2)?$", // Match *-values.yaml, *-values.yml, or *-values.yaml.j2 in clusters
"(^|/)kubernetes/.+\\-values\\.ya?ml(?:\\.j2)?$", // Match *-values.yaml, *-values.yml, or *-values.yaml.j2 in kubernetes
"(^|/)repositories/.+\\-values\\.ya?ml(?:\\.j2)?$", // Match *-values.yaml, *-values.yml, or *-values.yaml.j2 in repositories
"(^|/)charts/.+\\-values\\.ya?ml(?:\\.j2)?$" // Match *-values.yaml, *-values.yml, or *-values.yaml.j2 in charts
"(^|/)clusters/.+\\-values\\.ya?ml$", // Match *-values.yaml, *-values.yml, or *-values.yaml.j2 in clusters
"(^|/)kubernetes/.+\\-values\\.ya?ml$", // Match *-values.yaml, *-values.yml, or *-values.yaml.j2 in kubernetes
"(^|/)repositories/.+\\-values\\.ya?ml$", // Match *-values.yaml, *-values.yml, or *-values.yaml.j2 in repositories
"(^|/)charts/.+\\-values\\.ya?ml$" // Match *-values.yaml, *-values.yml, or *-values.yaml.j2 in charts
],
"enabled": true, // Enable image reference updates in values.yaml
"updateTypes": ["major", "minor", "patch", "digest", "pin"], // Allow updates for all version types
+1 -1
View File
@@ -3,7 +3,7 @@
"helmv3": {
"fileMatch": [
".+/Chart\\.ya?ml(?:\\.j2)?$" // Matches Chart.yaml or Chart.yml files, optionally with a .j2 extension
".+/Chart\\.ya?ml$" // Matches Chart.yaml or Chart.yml files, optionally with a .j2 extension
],
"enabled": true, // Enable Helm chart updates
"semanticCommitScope": "helm",
@@ -3,24 +3,31 @@
"customManagers": [
{
"customType": "regex",
"description": ["Process custom dependencies"],
"fileMatch": [".ya?ml(?:\\.j2)?$"],
"description": ["Process YAML custom dependencies"],
"fileMatch": [".ya?ml$"],
"matchStrings": [
// # renovate: datasource=github-releases depName=k3s-io/k3s
// k3s_release_version: &version v1.29.0+k3s1
// # renovate: datasource=helm depName=cilium repository=https://helm.cilium.io
// version: 1.15.1
// # renovate: datasource=docker depName=ghcr.io/siderolabs/kubelet
// KUBERNETES_VERSION=v1.31.1
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( repository=(?<registryUrl>\\S+))?\\n.+: (&\\S+\\s)?(?<currentValue>\\S+)",
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\n.+/(?<currentValue>(v|\\d)[^/]+)"
// # renovate: datasource=github-releases depName=rancher/system-upgrade-controller
// https://github.com/rancher/system-upgrade-controller/releases/download/v0.13.2/crd.yaml
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)\\n.+/(?<currentValue>(v|\\d)[^/]+)",
"datasource=(?<datasource>\\S+) depName=(?<depName>\\S+)( repository=(?<registryUrl>\\S+))?\n.+?\"(?<currentValue>\\S+)\""
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}",
"branchPrefix": "regex-",
"pinDigests": false // Set to false to not pin digest references
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}github-releases{{/if}}"
},
{
"customType": "regex",
"description": ["Process CloudnativePG Postgresql version"],
"fileMatch": ["(^|/)clusters/.+\\.ya?ml(?:\\.j2)?$"],
"matchStrings": ["imageName: (?<depName>\\S+):(?<currentValue>.*\\-.*)"],
"datasourceTemplate": "docker",
"versioningTemplate": "redhat",
"branchPrefix": "regex-"
}
//// TODO: verify if we need/use this logic at all
// {
// "customType": "regex",
// "description": ["Process CloudnativePG Postgresql version"],
// "fileMatch": ["(^|/)kubernetes/.+\\.ya?ml$"],
// "matchStrings": ["imageName: (?<depName>\\S+):(?<currentValue>.*\\-.*)"],
// "datasourceTemplate": "docker",
// "versioningTemplate": "redhat"
// }
]
}
}