> This page is for Remediation Orchestrator.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/remediation-orchestrator/llms.txt.

# kubernetes

**Experimental.** For evaluation. Interfaces, configuration, and behavior may change incompatibly.

Synchronizes Kubernetes node inventory and supports node, pod and custom-resource operations. Workflows must supply their own draining and eviction integration.

### Prerequisites

* Kubernetes API access.
* Worker-readable kubeconfig with credentials and node-list permission.

### Setup

* Mount the kubeconfig and add tenant TOML:

```toml
[modules.kubernetes]
kube_config_path = "/etc/nro/kubeconfig"
sync_nodes_interval = "5m"
cluster_names = ["example-context"]
```

* Replace the path and context with your own.

> **Note**
>
> This module must be enabled in your Remediation Orchestrator config before it is available to scripts.

This module provides functionality for interacting with Kubernetes clusters.

## Members

* [external_remediation_gvr](#external_remediation_gvr)
* [maintenance_request_gvr](#maintenance_request_gvr)
* [bulk_add_taint](#bulk_add_taint)
* [bulk_remove_node_labels](#bulk_remove_node_labels)
* [bulk_remove_taint](#bulk_remove_taint)
* [bulk_set_node_labels](#bulk_set_node_labels)
* [check_connectivity](#check_connectivity)
* [create_idle_blocker_pod](#create_idle_blocker_pod)
* [create_maintenance_request](#create_maintenance_request)
* [create_pod](#create_pod)
* [delete_idle_blocker_pod](#delete_idle_blocker_pod)
* [delete_maintenance_request](#delete_maintenance_request)
* [delete_pod](#delete_pod)
* [describe_pod](#describe_pod)
* [exec_in_pod](#exec_in_pod)
* [export_daemonsets](#export_daemonsets)
* [export_events](#export_events)
* [export_node](#export_node)
* [export_pod](#export_pod)
* [export_pods](#export_pods)
* [get_cr](#get_cr)
* [get_node](#get_node)
* [get_pod_logs](#get_pod_logs)
* [gvr](#gvr)
* [list_crs](#list_crs)
* [list_idle_blocker_pods](#list_idle_blocker_pods)
* [list_node_details](#list_node_details)
* [list_node_pods](#list_node_pods)
* [list_nodes](#list_nodes)
* [list_pods](#list_pods)
* [mark_cr_complete](#mark_cr_complete)
* [on_cordon](#on_cordon)
* [on_cr_created](#on_cr_created)
* [on_external_remediation](#on_external_remediation)
* [on_external_remediation_all_configured_clusters](#on_external_remediation_all_configured_clusters)
* [on_taint](#on_taint)
* [pod_handle](#pod_handle)
* [remove_node_label](#remove_node_label)
* [remove_node_status_condition](#remove_node_status_condition)
* [remove_taint](#remove_taint)
* [run_pod](#run_pod)
* [set_cr_condition](#set_cr_condition)
* [set_node_label](#set_node_label)
* [set_node_status_condition](#set_node_status_condition)
* [tenant_pod_handle](#tenant_pod_handle)
* [uncordon](#uncordon)
* [update_cr_metadata](#update_cr_metadata)
* [update_cr_status](#update_cr_status)
* [wait_for_cr_change](#wait_for_cr_change)

## external_remediation_gvr

The default GroupVersionResource for NVSentinel ExternalRemediationRequest CRs.

## maintenance_request_gvr

The default GroupVersionResource for NVSentinel MaintenanceRequest CRs.

## bulk_add_taint

Add one taint to many nodes: any existing taint with the same key is replaced regardless of effect, and other taints are never touched. Fail-forward: per-node failures come back in the result while successes stand, with no rollback. The cluster is the tenant's single configured cluster, never a parameter. Example: result = kubernetes.bulk_add_taint(\["node-1", "node-2"], "screening.example.com/role"); failed = result.failures. Can only be called from within a Temporal workflow.

Node names to taint (max 1000 per call).

The key of the taint to add.

The value of the taint.

The taint effect: NoSchedule, PreferNoSchedule, or NoExecute.

BulkNodeMutationResult with per-node failure reasons; nodes absent from it succeeded.

## bulk_remove_node_labels

Remove label keys from many nodes: a node carrying none of the keys counts as success, and other labels are never touched. Fail-forward: per-node failures come back in the result while successes stand, with no rollback. The cluster is the tenant's single configured cluster, never a parameter. Example: result = kubernetes.bulk_remove_node_labels(\["node-1", "node-2"], \["screening.example.com/role"]); failed = result.failures. Can only be called from within a Temporal workflow.

Node names to remove the labels from (max 1000 per call).

The label keys removed from every node (max 256 per call).

BulkNodeMutationResult with per-node failure reasons; nodes absent from it succeeded.

## bulk_remove_taint

Remove the taint with the given key from many nodes, leaving taints under other keys untouched; a node without the taint is a success. Fail-forward: per-node failures come back in the result while successes stand, with no rollback. The cluster is the tenant's single configured cluster, never a parameter. Example: result = kubernetes.bulk_remove_taint(\["node-1", "node-2"], "screening.example.com/role"); failed = result.failures.

Node names to remove the taint from (max 1000 per call).

The key of the taint to remove.

BulkNodeMutationResult with per-node failure reasons; nodes absent from it succeeded.

## bulk_set_node_labels

Set labels on the given nodes in one call: each requested key is written, other labels are never touched. The batch is not atomic and fails forward: per-node failures come back in the result while successes stand, with no rollback, and a node already carrying the requested values counts as success. The cluster is the tenant's single configured cluster, never a parameter. Example: result = kubernetes.bulk_set_node_labels(\["node-1"], \{"screening.example.com/role": "screening"}); failed = result.failures.

Names of the nodes to label. At most 1000 per call.

Labels set on every node (e.g. \{"screening.example.com/role": "screening"}).

BulkNodeMutationResult with per-node failure reasons; nodes absent from it succeeded.

## check_connectivity

Verify Kubernetes server discovery and bounded node and pod list access for one configured context.

Dictionary containing cluster_name, server_version, node_count, and pod_count.

## create_idle_blocker_pod

Create a minimal pod pinned to a node that prevents the node from appearing idle. The pod persists until deleted. Idempotent: returns the existing pod if one is already present on the node. Intent is keyed to the node's Kubernetes UID.

The name of the cluster.

The name of the node to schedule on.

The namespace for the pod. Defaults to the tenant idle_blocker_namespace setting ("default" when unset).

The container image to use.

PodHandle for use with delete_pod or delete_idle_blocker_pod.

## create_maintenance_request

Create an NVSentinel MaintenanceRequest to take a node offline for externally initiated maintenance. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the MaintenanceRequest CR.

The NVSentinel HealthEvent payload describing the maintenance and requested action.

The maintenance window start time in RFC3339 format.

## create_pod

Create a long-running pod on a specific node for running commands via exec_in_pod. The pod is automatically deleted after the TTL expires. Call delete_pod when done to clean up early.

A name for this pod session. Used in the pod name for identification. Must be unique within a workflow run.

The name of the cluster.

The namespace for the pod.

The name of the node to schedule on.

The container image to use.

Environment variables as a dict.

Time-to-live for the pod as a duration string (e.g. '4h', '168h'). Pod exits after this duration. Defaults to 168h (7 days).

Number of nvidia.com/gpu to request on the container. Required for nvidia-smi or CUDA access. Defaults to 0 (no GPU).

PodHandle with pod_name for use with exec_in_pod and delete_pod.

## delete_idle_blocker_pod

Delete the idle-blocker pod on a node and mark the intent released for the current node's Kubernetes UID. Sync does not recreate the pod for that UID. Safe to call if the pod has already been deleted.

The name of the cluster.

The name of the node the idle-blocker pod is pinned to.

The namespace of the pod. Defaults to the stored intent namespace or tenant idle_blocker_namespace setting.

Wait for the pod to be fully deleted before returning. Defaults to True.

## delete_maintenance_request

Delete the inspected version of an NVSentinel MaintenanceRequest to end externally initiated maintenance. The UID and resource version must match. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the MaintenanceRequest CR.

The original request UID. Deletion requires this value.

The metadata.resourceVersion from the inspected request. Deletion requires this value.

## delete_pod

Delete a pod. Waits for full deletion by default. Safe to call if the pod has already been deleted.

The PodHandle from create_pod or pod_handle.

Wait for the pod to be fully deleted before returning. Defaults to True.

## describe_pod

Get details about a pod.

The PodHandle from create_pod or pod_handle.

SessionPodDetail with name, node, phase, image, and other metadata.

## exec_in_pod

Execute a command in a running pod. Returns stdout, stderr, and exit code. Nothing is written in the pod: the kill finds the command through a tag in its environment (a command that scrubs its environment escapes it), and needs grep in the container image, plus tr when keep_descendants_alive is set.

The PodHandle from create_pod or pod_handle.

The command to execute.

Literal arguments to append to the command; shell syntax belongs in command.

Timeout for the command as a duration string (e.g. '5m', '1h'). Max 24h. Defaults to 5m. Counts from the first attempt's schedule across retries; expiry kills the command in the pod.

Environment variables as a dict. Values may use \{secret:NAME} placeholders. Names must be shell identifiers.

Container to exec into. Defaults to 'executor', the create_pod container name.

Maximum Temporal activity attempts. Zero keeps the module default of retrying until the timeout; one disables retries. Each retry kills what the previous attempt left running, then re-runs the whole command.

On every kill this call issues (timeout, retry sweep, failure cleanup), signal only the command itself and leave processes it spawned running, including runs it detached into their own sessions. By default a kill takes the command's whole process group when the image has setsid, otherwise only the tagged processes.

ExecResult with exit_code, stdout, stderr, stdout_truncated, and stderr_truncated.

## export_daemonsets

Prepare a lazy JSON DaemonSetList File using the tenant's single configured cluster. Example: f = kubernetes.export_daemonsets("gpu-operator"); key = objectstore.upload_file(f, "diagnostics/collection"). Includes complete Pod templates. Follows all Kubernetes pages inside the consuming activity. Expired continuation tokens or inconsistent resource versions fail the consumer; retry collection. Requires list on daemonsets in the namespace when consumed. Only a selection reference enters Temporal history; resource contents are read when a File consumer opens it. No content redaction or export byte ceiling. Resource contents can include literal environment values, arguments and annotations. The File is not a snapshot until consumed: reopening can read changed or replacement resources. Upload promptly to a distinct collection prefix, then reuse the stored File for durable evidence.

Required namespace containing the DaemonSets.

Kubernetes label selector.

JSON File containing a complete DaemonSetList for the selection, including full Pod templates and status; size is unknown until consumed.

## export_events

Prepare a lazy JSON EventList File using the tenant's single configured cluster. Example: f = kubernetes.export_events(object_kind="Node", object_uid="node-instance-uid"); key = objectstore.upload_file(f, "diagnostics/collection"). Requires a namespace or object_uid; object name or kind alone is insufficient across namespaces. Object filters are combined. Follows all Kubernetes pages inside the consuming activity. Expired pages or inconsistent resource versions fail the consumer; retry collection. Requires list on events in the selected scope. Expired events cannot be recovered. Only a selection reference enters Temporal history; resource contents are read when a File consumer opens it. No content redaction or export byte ceiling. Resource contents can include literal environment values, arguments and annotations. The File is not a snapshot until consumed: reopening can read changed or replacement resources. Upload promptly to a distinct collection prefix, then reuse the stored File for durable evidence.

Namespace; empty requires object_uid and includes matching events across namespaces.

Filter by involvedObject.name.

Filter by involvedObject.kind, such as Node or Pod.

Filter by involvedObject.uid to distinguish resource instances. Required when namespace is empty.

JSON File containing a complete EventList for the selection; size is unknown until consumed. No event bodies return to Starlark.

## export_node

Prepare a lazy JSON File containing one complete Node resource. Example: f = kubernetes.export_node("cluster-context", "worker-1"); key = objectstore.upload_file(f, "diagnostics/collection"). Requires get on nodes when consumed. Only a selection reference enters Temporal history; resource contents are read when a File consumer opens it. No content redaction or export byte ceiling. Resource contents can include literal environment values, arguments and annotations. The File is not a snapshot until consumed: reopening can read changed or replacement resources. Upload promptly to a distinct collection prefix, then reuse the stored File for durable evidence.

Configured Kubernetes cluster context.

Node name selecting the live resource at consumption time.

JSON File containing the complete Node, including metadata, spec and status; size is unknown until consumed.

## export_pod

Prepare a lazy JSON File containing one complete Pod resource. Example: f = kubernetes.export_pod(kubernetes.tenant_pod_handle("default", "worker-pod")); key = objectstore.upload_file(f, "diagnostics/collection"). Requires get on pods when consumed. Only a selection reference enters Temporal history; resource contents are read when a File consumer opens it. No content redaction or export byte ceiling. Resource contents can include literal environment values, arguments and annotations. The File is not a snapshot until consumed: reopening can read changed or replacement resources. Upload promptly to a distinct collection prefix, then reuse the stored File for durable evidence.

PodHandle selecting the pod.

JSON File containing the complete Pod, including metadata, spec and status; size is unknown until consumed.

## export_pods

Prepare a lazy JSON PodList File using the tenant's single configured cluster. Example: f = kubernetes.export_pods(node="worker-1"); key = objectstore.upload_file(f, "diagnostics/collection"). Requires a namespace or node; a label selector alone is insufficient. Follows all Kubernetes pages inside the consuming activity; no resource bodies or continuation tokens return to Starlark. Expired continuation tokens or inconsistent resource versions fail the consumer; retry collection. Requires list on pods in the selected scope when consumed. Only a selection reference enters Temporal history; resource contents are read when a File consumer opens it. No content redaction or export byte ceiling. Resource contents can include literal environment values, arguments and annotations. The File is not a snapshot until consumed: reopening can read changed or replacement resources. Upload promptly to a distinct collection prefix, then reuse the stored File for durable evidence.

Namespace; empty requires node and includes matching Pods across namespaces.

Only Pods scheduled on this node; empty requires namespace and includes all nodes in that namespace.

Kubernetes label selector.

JSON File containing a complete PodList for the selection, including full Pod specs and status; size is unknown until consumed.

## get_cr

Fetch a CR and return it as a dict. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the CR to read.

The GroupVersionResource of the CR (created via k8s.gvr()).

The CR namespace. Empty for cluster-scoped CRs.

The request UID from the callback. If supplied, a different UID fails the read.

The CR as a dict (e.g. cr\['spec']\['action'], cr\['status']\['phase']).

## get_node

Get a single node by name, including its provider ID, boot ID, and NodeConditions. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the node.

NodeInfo with name, cluster, provider ID, boot ID, taints, unschedulable status, and conditions.

## get_pod_logs

Prepare a lazy File for current or previous container logs. Example: f = kubernetes.get_pod_logs(kubernetes.tenant_pod_handle("default", "worker-pod"), "worker"); key = objectstore.upload_file(f, "diagnostics/run-unique-id"). Only reference metadata enters history; bytes stream when a File consumer opens it. Requires get on pods and pods/log. No content redaction. The observed Pod/container identity is checked at open time; retained logs can still grow or rotate. Upload promptly for a durable snapshot and use a distinct workflow/collection destination prefix for each snapshot.

PodHandle selecting the pod.

Explicit regular, init or ephemeral container name.

Select the previous terminated container instance; default false.

RFC3339 lower time bound; empty selects all retained history within the other filters.

Positive line limit; zero leaves the line count unbounded.

Optional byte limit; zero (the default) adds no byte limit. A positive value fails the consumer read if exceeded instead of silently truncating.

Include Kubernetes log timestamps; default true.

File with unknown size until consumed. Pass to objectstore.upload_file or a File-based attachment API; no log text is returned to Starlark. Native retention and explicit time/line filters can omit history.

## gvr

Create a GroupVersionResource for specifying a Kubernetes CR type.

The API group (e.g., 'workflow\.example.com').

The API version (e.g., 'v1alpha1').

The resource name in plural form (e.g., 'nodeactions').

The GVR instance.

## list_crs

List all custom resources of a given type in a cluster. Can only be called from within a Temporal workflow.

The name of the cluster.

The GroupVersionResource of the CR type (created via k8s.gvr()).

List of CRDetail objects with name, node, status fields, and completion time.

## list_idle_blocker_pods

List idle-blocker pods on a specific node.

The name of the cluster.

The name of the node.

The namespace to list pods in. Defaults to the stored intent namespace or tenant idle_blocker_namespace setting.

SessionPodList with idle-blocker pod details.

## list_node_details

List the tenant's nodes with the requested label values, plus taints, cordon state, readiness, and GPU counts. Unlike list_nodes, which returns identity fields and full NodeConditions for an explicit cluster, this returns a lean NodeDetail sized for cluster-wide reads, and the cluster is the tenant's single configured cluster, never a parameter. Can only be called from within a Temporal workflow.

Projection only: label keys whose values to return (e.g. \["screening.example.com/role"]). Never changes which nodes return. Keys absent on a node are omitted; labels nobody asked for are never returned, keeping the payload small.

A Kubernetes label selector, filtered on the API server. Empty returns all nodes. Composes with taint_key; its keys need not appear in label_keys.

Only return nodes carrying a taint with this key, filtered in the activity because the API server cannot select on taints. Composes with label_selector.

Nodes per API page. Must be positive. Defaults to 500; values above 2000 are capped at 2000.

NodeDetailList with the resolved cluster and a list of NodeDetail objects.

## list_node_pods

List all Remediation Orchestrator session pods on a specific node.

The name of the cluster.

The namespace to list pods in.

The name of the node.

SessionPodList with a list of SessionPodDetail objects.

## list_nodes

List all nodes in a cluster, including provider IDs, boot IDs, and NodeConditions. For a lean cluster-wide read with label values, taint details, readiness, and GPU counts, use list_node_details instead. Can only be called from within a Temporal workflow.

The name of the cluster.

List of NodeInfo objects with name, cluster, provider ID, boot ID, taints, unschedulable status, and conditions.

## list_pods

List pods in a namespace, optionally filtered by a label selector and a node. The cluster is the tenant's single configured cluster, never a parameter. Labels are not unique in Kubernetes, so callers select the pod they want from the result (e.g. via pod_handle).

The namespace to list pods in.

A Kubernetes label selector (e.g. "app=veracity,role=management").

Only list pods scheduled on this node.

Maximum number of pods to return. Must be positive. Defaults to 500.

PodList with a list of PodDetail objects.

## mark_cr_complete

Mark a CR as complete by setting completionTime on it. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the CR to mark complete.

The GroupVersionResource of the CR (created via k8s.gvr()).

The original CR UID captured when selecting the request. When supplied, mutations reject a different UID; omission retains legacy name-based behavior.

## on_cordon

Trigger a workflow when a node is cordoned. Cannot be called from within a Temporal workflow.

A name for this on_cordon entrypoint. This will be used in the workflow ID.

The workflow object.

The name of the cluster.

The arguments to pass to the workflow.

## on_cr_created

Trigger one workflow per CR. Receives cr_name, node_name, cluster_name, gvr_group, gvr_version, and gvr_resource. Document cr_namespace and cr_uid in the callback Args or Kwargs to receive request identity. Document node_names (list\[string]) to handle requests with multiple nodes; node_name is empty for those requests. Cannot be called from within a Temporal workflow.

A name for this on_cr_created entrypoint. This will be used in the workflow ID.

The workflow object. Callbacks that declare cr_uid receive the original request UID and can pass it as expected_uid to CR mutation APIs.

The name of the cluster.

The GroupVersionResource of the CR to watch (created via k8s.gvr()).

Additional arguments to pass to the workflow.

## on_external_remediation

Trigger a workflow when an NVSentinel ExternalRemediationRequest is ready for external remediation. Cannot be called from within a Temporal workflow.

A name for this on_external_remediation entrypoint. This will be used in the workflow ID.

The workflow object. Callbacks that declare cr_uid receive the original request UID and can pass it as expected_uid to CR mutation APIs.

The name of the cluster.

The GroupVersionResource of the ExternalRemediationRequest CR (created via kubernetes.gvr() or kubernetes.external_remediation_gvr).

Additional arguments to pass to the workflow.

## on_external_remediation_all_configured_clusters

Trigger a workflow for ExternalRemediationRequests from every cluster configured for the Kubernetes module. Cannot be called from within a Temporal workflow.

A name for this entrypoint. This will be used in the workflow ID.

The workflow object. Callbacks that declare cr_uid receive the original request UID and can pass it as expected_uid to CR mutation APIs.

The GroupVersionResource of the ExternalRemediationRequest CR (created via kubernetes.gvr() or kubernetes.external_remediation_gvr).

Additional arguments to pass to the workflow.

## on_taint

Trigger a workflow when a node has a taint. Cannot be called from within a Temporal workflow.

A name for this on_taint entrypoint. This will be used in the workflow ID.

The workflow object.

The name of the cluster.

The key of the taint to trigger on.

The arguments to pass to the workflow.

## pod_handle

Create a PodHandle for an existing pod. Use this to exec or delete pods not created by create_pod.

The name of the cluster.

The namespace of the pod.

The name of the pod.

PodHandle for use with exec, delete_pod, and describe_pod.

## remove_node_label

Remove a label from a Kubernetes Node. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the node.

The label key to remove.

## remove_node_status_condition

Remove a Kubernetes Node status condition by type. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the node.

The Node condition type to remove.

## remove_taint

Removes a taint from a node. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the node.

The key of the taint to remove.

## run_pod

Run a command in an ephemeral pod on a specific node. Can only be called from within a Temporal workflow.

The name of the cluster.

The namespace for the pod.

The name of the node to run on.

The command to execute.

Timeout for the command execution as a duration string (e.g. '5m', '1h'). Defaults to 5m.

The container image to use. Defaults to busybox:latest.

Literal arguments to append to the command; shell syntax belongs in command.

Environment variables as a dict.

RunPodResult with exit_code, logs, and termination_message.

## set_cr_condition

Set Kubernetes status conditions and optional status fields in one update. Upserts conditions by type. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the CR to update.

The GroupVersionResource of the CR (created via k8s.gvr()).

The condition type (e.g. 'ActionComplete').

The condition status: 'True', 'False', or 'Unknown'.

Machine-readable reason (e.g. 'ActionFinished').

Human-readable message describing the condition.

The original CR UID captured when selecting the request. Required for namespaced CRs. Cluster-scoped CRs retain legacy name-based behavior when omitted.

The CR namespace. Empty for cluster-scoped CRs.

Additional conditions to upsert in the same update. Each dict supplies type, status, reason, and message. Each condition type must be distinct.

Top-level status fields and their JSON values. Use the condition arguments for status.conditions.

## set_node_label

Add or update a label on a Kubernetes Node. Pass both expected_uid and expected_value to require the same node UID and prior label value in the update. On a retry, the expected node UID and desired label value count as success. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the node.

The label key.

The label value.

The expected Kubernetes Node UID. Requires expected_value.

The expected value of the existing label. An empty string matches an existing empty value. Requires expected_uid.

## set_node_status_condition

Add or update a Kubernetes Node status condition. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the node.

The Node condition type.

The condition status: True, False, or Unknown.

The machine-readable reason for the condition.

The human-readable condition message.

## tenant_pod_handle

Create a PodHandle for an existing pod. The cluster is the tenant's single configured cluster, never a parameter. Use pod_handle to name a cluster explicitly. Example: pod = kubernetes.tenant_pod_handle("veracity", "veracity-home-0"); result = kubernetes.exec_in_pod(pod, "nvidia-smi").

The namespace of the pod.

The name of the pod.

PodHandle for use with exec, delete_pod, and describe_pod.

## uncordon

Uncordon a node. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the node.

## update_cr_metadata

Update metadata on a CR (finalizers, labels, annotations). Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the CR.

The GroupVersionResource of the CR (created via k8s.gvr()).

List of finalizers to add.

List of finalizers to remove.

Labels to add or update.

Annotations to add or update.

The original CR UID captured when selecting the request. When supplied, mutations reject a different UID; omission retains legacy name-based behavior.

## update_cr_status

Update a field in a CR's status subresource. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the CR to update.

The GroupVersionResource of the CR (created via k8s.gvr()).

The status field name to update (e.g. 'phase', 'trackingId').

The string value to set.

The original CR UID captured when selecting the request. When supplied, mutations reject a different UID; omission retains legacy name-based behavior.

## wait_for_cr_change

Wait for a CR status field to reach a specific value. Blocks until the condition is met. Can only be called from within a Temporal workflow.

The name of the cluster.

The name of the CR to watch.

The GroupVersionResource of the CR (created via k8s.gvr()).

The status field to watch (e.g. 'phase').

The value to wait for (e.g. 'READY').

Timeout as a duration string (e.g. '168h' for 7 days). Defaults to 7 days.