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

Method AsDependency

pkg/devspace/context/context.go:279–291  ·  view source on GitHub ↗
(dependency types.Dependency)

Source from the content-addressed store, hash-verified

277}
278
279func (c *context) AsDependency(dependency types.Dependency) Context {
280 if c == nil {
281 return nil
282 }
283
284 n := *c
285 n.workingDir = dependency.Path()
286 n.kubeClient = dependency.KubeClient()
287 n.config = dependency.Config()
288 n.dependencies = dependency.Children()
289 n.environ = env.NewVariableEnvProvider(c.environ, env.ConvertMap(n.config.Variables()))
290 return &n
291}

Callers

nothing calls this directly

Calls 7

NewVariableEnvProviderFunction · 0.92
ConvertMapFunction · 0.92
PathMethod · 0.65
KubeClientMethod · 0.65
ConfigMethod · 0.65
ChildrenMethod · 0.65
VariablesMethod · 0.65

Tested by

no test coverage detected