From adfbd03eb51074a3be55a7203375fde504fcac7d Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Mon, 1 Jul 2024 20:42:37 +0200 Subject: [PATCH] feat(kubernetes): handle image refs with yaml anchors --- kubernetes.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kubernetes.json b/kubernetes.json index c94fa97..de8cd72 100644 --- a/kubernetes.json +++ b/kubernetes.json @@ -43,10 +43,11 @@ { "customType": "regex", "fileMatch": [ - "^flux/(?:.+/)overlays/(?:.+/)patches/(?:postgresCluster)\\.ya?ml$" + "^flux/(?:.+/)overlays/(?:.+/)patches/(?:statefulSet|postgresCluster)\\.ya?ml$" ], "matchStrings": [ - "\\s+(?:imageName):\\s+\"?'?(?[^:\\s]+):(?[^\"'@\\s]+)(?:@(?sha256:[a-f0-9]+))?\"?'?" + "\\s+(?:imageName):\\s+\"?'?(?[^:\\s]+):(?[^\"'@\\s]+)(?:@(?sha256:[a-f0-9]+))?\"?'?", + "\\s+(?:image):\\s+&\\S+\\s+\"?'?(?[^:\\s]+):(?[^\"'@\\s]+)(?:@(?sha256:[a-f0-9]+))?\"?'?" ], "datasourceTemplate": "docker" },