0
0
mirror of https://github.com/thegeeklab/renovate-presets.git synced 2024-10-22 22:10:40 +00:00
renovate-presets/kubernetes.json

68 lines
2.2 KiB
JSON
Raw Normal View History

2022-12-16 21:14:33 +00:00
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"description": ["Preset for use with kubernetes repositories"],
"extends": ["github>thegeeklab/renovate-presets:base"],
"flux": {
2023-03-22 07:29:41 +00:00
"fileMatch": ["^flux/.+\\.ya?ml$"]
2023-03-21 08:25:27 +00:00
},
2023-03-21 12:56:09 +00:00
"helm-values": {
"fileMatch": [
"^flux/(?:.+/)overlays/(?:.+/)patches/(?:helmRelease)\\.ya?ml$"
],
"pinDigests": true
2023-03-21 12:56:09 +00:00
},
"kubernetes": {
"fileMatch": [
"^flux/(?:.+/)overlays/(?:.+/)patches/(?:deployment|postgresCluster|minioTenant)\\.ya?ml$"
]
2023-03-21 12:56:09 +00:00
},
2022-12-16 21:14:33 +00:00
"packageRules": [
{
"description": "Set semantic commit scope for docker digests",
2022-12-16 21:14:33 +00:00
"groupName": "docker digests",
"matchDatasources": ["docker"],
"matchUpdateTypes": ["pin", "digest"],
"semanticCommitScope": "docker"
},
{
"description": "Automerge digest updates (usually security patches)",
"groupName": "docker digests",
"matchDatasources": ["docker"],
"matchPackagePatterns": ["^hetznercloud/hcloud-cloud-controller-manager"],
"matchUpdateTypes": ["pin", "digest"],
"automerge": true
},
2022-12-16 21:14:33 +00:00
{
"description": "Disable kubernetes-api datasource",
"datasources": ["kubernetes-api"],
"enabled": false
2022-12-16 21:14:33 +00:00
}
],
"regexManagers": [
{
"fileMatch": [
"^flux/(?:.+/)overlays/(?:.+/)patches/(?:postgresCluster)\\.ya?ml$"
],
"matchStrings": [
"\\s+(?:imageName):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?"
],
"datasourceTemplate": "docker"
},
{
"fileMatch": ["^flux/(?:.+/)overlays/(?:.+/)(?:configmap)\\.ya?ml$"],
"matchStrings": [
".+(?:_IMAGE):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@\\s]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?"
],
"datasourceTemplate": "docker"
},
{
"fileMatch": ["^flux/crds/.+\\.ya?ml$"],
"matchStrings": [
"# renovate: registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*)\\s.+k8up-(?<currentValue>.*?)/.+"
],
"datasourceTemplate": "{{#if datasource}}{{{datasource}}}{{else}}helm{{/if}}",
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
2022-12-16 21:14:33 +00:00
]
}