NewNodeExecutionK8sReader
Creates a new NodeExecutionK8sReader instance, initializing it with metadata about the task execution, including the namespace, execution ID, node ID, and a Kubernetes client cache.
def NewNodeExecutionK8sReader(
meta: pluginsCore.TaskExecutionMetadata,
client: pluginsCore.KubeClient
) - > *NodeExecutionK8sReader
Creates and returns a new NodeExecutionK8sReader instance, initialized with metadata about a task execution and a Kubernetes client. This reader is used to access Kubernetes resources related to a specific node execution.
Parameters
| Name | Type | Description |
|---|---|---|
| meta | pluginsCore.TaskExecutionMetadata | Metadata containing information about the task execution, including the task execution ID, which is used to derive the execution ID, node ID, and namespace. |
| client | pluginsCore.KubeClient | A Kubernetes client used to interact with the Kubernetes API, specifically its cached version for efficient access. |
Returns
| Type | Description |
|---|---|
*NodeExecutionK8sReader | A new NodeExecutionK8sReader instance configured for the specified node execution. |