(dependency types.Dependency)
| 277 | } |
| 278 | |
| 279 | func (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 | } |
nothing calls this directly
no test coverage detected