Skip to content

Commit

Permalink
Fix fileMatch for commodore-helm manager
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
simu committed Jan 30, 2025
1 parent 7955325 commit d057e04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commodore-helm/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d057e04

Please sign in to comment.