Skip to content

Commit

Permalink
do not by pass the localResourceLoader when loading config files
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Lours <[email protected]>
  • Loading branch information
glours committed Oct 22, 2024
1 parent 8948716 commit 6359f15
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loader/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,9 @@ func LoadConfigFiles(ctx context.Context, configFiles []string, options ...func(

for i, p := range configFiles {
for _, loader := range opts.ResourceLoaders {
if !loader.Accept(p) {
_, isLocalResourceLoader := loader.(localResourceLoader)
// we should not by-pass the localResourceLoader
if !loader.Accept(p) && !isLocalResourceLoader {
continue
}
local, err := loader.Load(ctx, p)
Expand Down

0 comments on commit 6359f15

Please sign in to comment.