Use native pipeline discovery and independent secrets bootstrap

This commit is contained in:
2026-11-17 22:06:29 +00:00
parent 341fe93e3b
commit 6593ccbeaf
21 changed files with 208 additions and 270 deletions

View File

@@ -8,6 +8,7 @@ import (
"strings"
"gitea.maximumdirect.net/eric/narratio/internal/fileops"
configkit "go.maximumdirect.net/configkit"
)
// LoadPipeline loads pipeline configuration from a YAML file with strict field checking.
@@ -19,6 +20,7 @@ func LoadPipeline(path string) (*PipelineConfig, error) {
// empty, and the exact name "default" select the base configuration.
type PipelineLoadOptions struct {
Overlay *string
Search *configkit.Search
}
// LoadPipelineWithOptions loads pipeline configuration with strict field
@@ -28,7 +30,7 @@ func LoadPipelineWithOptions(path string, opts PipelineLoadOptions) (*PipelineCo
if err != nil {
return nil, err
}
return finalizeLoadedPipeline(path, cfg)
return finalizeLoadedPipeline(EffectivePipelineRootPath(cfg), cfg)
}
// LoadPipelineOverlayPair resolves two overlays as independent ConfigKit loads.