Setup
Registers the executor as a background worker on the SetupContext. This function requires sc.K8sConfig and sc.DataStore to be set, and it initializes various components including a controller manager, webhooks, metrics server, data store, plugin registry, and OpenTelemetry providers.
def Setup(
ctx: context.Context,
sc: *app.SetupContext
) - > error
Registers the executor as a background worker on the SetupContext. This function initializes and configures various components including the controller manager, webhooks, metrics server, data store, plugin registry, OpenTelemetry, and catalog clients, then sets up the task action reconciler and garbage collector. It requires sc.K8sConfig and sc.DataStore to be set.
Parameters
| Name | Type | Description |
|---|---|---|
| ctx | context.Context | The context for managing cancellation and deadlines during the setup process. |
| sc | *app.SetupContext | The application setup context, which provides necessary configurations like Kubernetes config and data store, and where the executor worker will be registered. |
Returns
| Type | Description |
|---|---|
error | Returns an error if any setup or initialization step fails. |