fix: more strict regex for flux overlays

This commit is contained in:
Robert Kaussow 2023-08-13 13:12:02 +02:00
parent e72513796c
commit 275f5afa08
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0
1 changed files with 8 additions and 4 deletions

View File

@ -6,12 +6,14 @@
"fileMatch": ["^flux/.+\\.ya?ml$"]
},
"helm-values": {
"fileMatch": ["^flux/(.+/)patches/(helmRelease)\\.ya?ml$"],
"fileMatch": [
"^flux/(?:.+/)overlays/(?:.+/)patches/(?:helmRelease)\\.ya?ml$"
],
"pinDigests": true
},
"kubernetes": {
"fileMatch": [
"^flux/(.+/)patches/(deployment|postgresCluster|minioTenant)\\.ya?ml$"
"^flux/(?:.+/)overlays/(?:.+/)patches/(?:deployment|postgresCluster|minioTenant)\\.ya?ml$"
]
},
"packageRules": [
@ -38,14 +40,16 @@
],
"regexManagers": [
{
"fileMatch": ["^flux/(.+/)patches/(postgresCluster)\\.ya?ml$"],
"fileMatch": [
"^flux/(?:.+/)overlays/(?:.+/)patches/(?:postgresCluster)\\.ya?ml$"
],
"matchStrings": [
"\\s+(?:imageName):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?"
],
"datasourceTemplate": "docker"
},
{
"fileMatch": ["^flux/(.+/)patches/(config)\\.ya?ml$"],
"fileMatch": ["^flux/(?:.+/)overlays/(?:.+/)(?:configmap)\\.ya?ml$"],
"matchStrings": [
".+(?:_IMAGE):\\s+\"?'?(?<depName>[^:\\s]+):(?<currentValue>[^\"'@]+)(?:@(?<currentDigest>sha256:[a-f0-9]+))?\"?'?"
],