Use native pipeline discovery and independent secrets bootstrap
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user