From d057e0493f58fbe4b780c4f3a7e3dae73e246ab7 Mon Sep 17 00:00:00 2001 From: Simon Gerber Date: Thu, 30 Jan 2025 17:44:01 +0100 Subject: [PATCH] Fix `fileMatch` for commodore-helm manager We need to anchor the beginning of the `fileMatch` commodore-helm regex `class/[^.].ya?ml$` so that we don't accidentally match any files in golden tests whose name or path contains the fragment `class/`, such as component-rook-ceph's `rbd-extra-storageclass` test case. Unfortunately, writing a test for this is tricky because we're configuring Renovate internals which we can't easily exercise in our test cases. --- src/commodore-helm/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commodore-helm/index.ts b/src/commodore-helm/index.ts index c26a742b..4cf7ae6e 100644 --- a/src/commodore-helm/index.ts +++ b/src/commodore-helm/index.ts @@ -28,7 +28,7 @@ interface KapitanHelmDependency extends KapitanDependency { export const defaultConfig = { // match all class files of the component - fileMatch: ['class/[^.]+.ya?ml$'], + fileMatch: ['^class/[^.]+.ya?ml$'], }; export const supportedDatasources = [HelmDatasource.id];