NewSetupContext
Creates a SetupContext implementation for the executor.
def NewSetupContext(
kubeClient: pluginsCore.KubeClient,
secretManager: pluginsCore.SecretManager,
resourceRegistrar: pluginsCore.ResourceRegistrar,
enqueueOwner: pluginsCore.EnqueueOwner,
enqueueLabels: []string,
ownerKind: string,
metricsScope: promutils.Scope
) - > pluginsCore.SetupContext
Creates a SetupContext implementation for the executor.
Parameters
| Name | Type | Description |
|---|---|---|
| kubeClient | pluginsCore.KubeClient | The Kubernetes client to interact with the Kubernetes API. |
| secretManager | pluginsCore.SecretManager | The secret manager to handle secrets. |
| resourceRegistrar | pluginsCore.ResourceRegistrar | The resource registrar to register resources. |
| enqueueOwner | pluginsCore.EnqueueOwner | The mechanism to enqueue owner objects for processing. |
| enqueueLabels | []string | A list of labels to be used for enqueuing. |
| ownerKind | string | The kind of the owner resource. |
| metricsScope | promutils.Scope | The Prometheus metrics scope for reporting metrics. |
Returns
| Type | Description |
|---|---|
pluginsCore.SetupContext | A new SetupContext implementation. |