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

Method AddTask

upup/pkg/fi/task.go:127–136  ·  view source on GitHub ↗
(task Task[T])

Source from the content-addressed store, hash-verified

125type CloudupModelBuilderContext = ModelBuilderContext[CloudupSubContext]
126
127func (c *ModelBuilderContext[T]) AddTask(task Task[T]) {
128 task = c.setLifecycleOverride(task)
129 key := buildTaskKey(task)
130
131 existing, found := c.Tasks[key]
132 if found {
133 klog.Fatalf("found duplicate tasks with name %q: %v and %v", key, task, existing)
134 }
135 c.Tasks[key] = task
136}
137
138// EnsureTask ensures that the specified task is configured.
139// It adds the task if it does not already exist.

Callers 15

ResourceNodeUpMethod · 0.80
TestBootstrapUserDataFunction · 0.80
BuildMethod · 0.80
BuildMethod · 0.80
addAWSVolumeMethod · 0.80
addDOVolumeMethod · 0.80
addGCEVolumeMethod · 0.80
addHetznerVolumeMethod · 0.80
addOpenstackVolumeMethod · 0.80
addAzureVolumeMethod · 0.80
addScalewayVolumeMethod · 0.80
BuildMethod · 0.80

Calls 2

setLifecycleOverrideMethod · 0.95
buildTaskKeyFunction · 0.85

Tested by 8

TestBootstrapUserDataFunction · 0.64
RunGoldenTestFunction · 0.64
TestFileDependenciesFunction · 0.64
runKubeletBuilderFunction · 0.64