From 275f5afa08fe2707e1abee61be12e50fd1e1b61e Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Sun, 13 Aug 2023 13:12:02 +0200 Subject: [PATCH] fix: more strict regex for flux overlays --- kubernetes.json | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/kubernetes.json b/kubernetes.json index 0e61238..52a6943 100644 --- a/kubernetes.json +++ b/kubernetes.json @@ -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+\"?'?(?[^:\\s]+):(?[^\"'@]+)(?:@(?sha256:[a-f0-9]+))?\"?'?" ], "datasourceTemplate": "docker" }, { - "fileMatch": ["^flux/(.+/)patches/(config)\\.ya?ml$"], + "fileMatch": ["^flux/(?:.+/)overlays/(?:.+/)(?:configmap)\\.ya?ml$"], "matchStrings": [ ".+(?:_IMAGE):\\s+\"?'?(?[^:\\s]+):(?[^\"'@]+)(?:@(?sha256:[a-f0-9]+))?\"?'?" ],