MCPcopy
hub / github.com/kubernetes/kops / GetDependencies

Method GetDependencies

pkg/model/bootstrapscript.go:268–283  ·  view source on GitHub ↗
(tasks map[string]fi.CloudupTask)

Source from the content-addressed store, hash-verified

266}
267
268func (b *BootstrapScript) GetDependencies(tasks map[string]fi.CloudupTask) []fi.CloudupTask {
269 var deps []fi.CloudupTask
270
271 for _, task := range tasks {
272 if hasAddress, ok := task.(fi.HasAddress); ok && len(hasAddress.GetWellKnownServices()) > 0 {
273 deps = append(deps, task)
274 b.hasAddressTasks = append(b.hasAddressTasks, hasAddress)
275 }
276 }
277
278 for _, task := range b.caTasks {
279 deps = append(deps, task)
280 }
281
282 return deps
283}
284
285func (b *BootstrapScript) Run(c *fi.CloudupContext) error {
286 if b.Lifecycle == fi.LifecycleIgnore {

Callers

nothing calls this directly

Calls 1

GetWellKnownServicesMethod · 0.65

Tested by

no test coverage detected