From 56ad8542d43aee77420adeda37c7b0a45d068561 Mon Sep 17 00:00:00 2001 From: Suleiman Dibirov Date: Wed, 30 Oct 2024 07:11:21 +0200 Subject: [PATCH] fix(loader): Add fix for stdin config read Signed-off-by: Suleiman Dibirov --- loader/loader.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/loader/loader.go b/loader/loader.go index 62030f23..8fb95088 100644 --- a/loader/loader.go +++ b/loader/loader.go @@ -318,6 +318,13 @@ func LoadConfigFiles(ctx context.Context, configFiles []string, workingDir strin opts.ResourceLoaders = append(opts.ResourceLoaders, localResourceLoader{}) for i, p := range configFiles { + if p == "-" { + config.ConfigFiles[i] = types.ConfigFile{ + Filename: p, + } + continue + } + for _, loader := range opts.ResourceLoaders { _, isLocalResourceLoader := loader.(localResourceLoader) if !loader.Accept(p) {