MCPcopy Create free account
hub / github.com/devspace-sh/devspace / fillVariablesAndParse

Function fillVariablesAndParse

pkg/devspace/config/loader/parser.go:127–140  ·  view source on GitHub ↗
(ctx context.Context, resolver variable.Resolver, preparedConfig map[string]interface{}, log log.Logger, excludedPaths ...string)

Source from the content-addressed store, hash-verified

125}
126
127func fillVariablesAndParse(ctx context.Context, resolver variable.Resolver, preparedConfig map[string]interface{}, log log.Logger, excludedPaths ...string) (*latest.Config, map[string]interface{}, error) {
128 // fill in variables and expressions
129 preparedConfigInterface, err := resolver.FillVariablesExclude(ctx, preparedConfig, false, excludedPaths)
130 if err != nil {
131 return nil, nil, err
132 }
133
134 latestConfig, err := versions.Parse(preparedConfigInterface.(map[string]interface{}), log)
135 if err != nil {
136 return nil, nil, err
137 }
138
139 return latestConfig, preparedConfigInterface.(map[string]interface{}), nil
140}
141
142func EachDevContainer(devPod *latest.DevPod, each func(devContainer *latest.DevContainer) bool) {
143 if len(devPod.Containers) > 0 {

Callers 2

fillAllVariablesAndParseFunction · 0.85

Calls 2

ParseFunction · 0.92
FillVariablesExcludeMethod · 0.65

Tested by

no test coverage detected