MCPcopy Index your code
hub / github.com/devspace-sh/devspace / reloadVariables

Function reloadVariables

pkg/devspace/config/loader/loader.go:367–377  ·  view source on GitHub ↗
(resolver variable.Resolver, rawConfig map[string]interface{}, log log.Logger)

Source from the content-addressed store, hash-verified

365}
366
367func reloadVariables(resolver variable.Resolver, rawConfig map[string]interface{}, log log.Logger) error {
368 // Load defined variables again (might be changed through profiles)
369 loadedVars, err := versions.ParseVariables(rawConfig, log)
370 if err != nil {
371 return err
372 }
373
374 // update the used vars in the resolver
375 resolver.UpdateVars(loadedVars)
376 return nil
377}
378
379func validateProfile(profile interface{}) error {
380 profileMap, ok := profile.(map[string]interface{})

Callers 2

parseConfigMethod · 0.85
ResolveImportsFunction · 0.85

Calls 2

ParseVariablesFunction · 0.92
UpdateVarsMethod · 0.65

Tested by

no test coverage detected