kubernetes.event.list ​
List events in a namespace, newest first
List events in a Kubernetes namespace, newest first.
Inputs:
- connection_uuid: Cloud connection UUID (required)
- namespace: Namespace to query (required)
- field_selector: Kubernetes field selector, e.g. "involvedObject.kind=Pod,involvedObject.name=foo" (optional)
- limit: Maximum events to return (optional; default 200, cap 1000)
Outputs:
- items: list of event dicts (see module docstring for shape)
- count: number of events returned
Plugin required: context.get_plugin("connection").kubernetes_runner_clients(connection_uuid, organization_uuid) must expose core_v1 with list_namespaced_event.
Overview ​
| Property | Value |
|---|---|
| Workflow type | Atomic |
| Library | App-kubernetes |
| Version | 1.0 |
Input Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | Yes | — | Cloud connection UUID |
namespace | string | Yes | — | Namespace to query |
field_selector | string | No | — | Kubernetes field selector (e.g. "involvedObject.kind=Pod,involvedObject.name=foo") |
limit | integer | No | — | Max events to return (default 200, cap 1000) |
organization_uuid | uuid | No | — | — |
Output Schema ​
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
connection_uuid | uuid | No | — | — |
organization_uuid | uuid | No | — | — |
namespace | string | No | — | — |
field_selector | string | No | — | — |
limit | integer | No | — | — |
items | list | No | — | — |
count | integer | No | — | — |
failure_reason | string | No | — | — |
failure_type | string | No | — | — |
failed_action | string | No | — | — |
failed_at_state | string | No | — | — |
failed_step | string | No | — | — |
failed_layer | string | No | — | — |
error | string | No | — | — |
error_type | string | No | — | — |
States ​
| State | Initial | Terminal | Success | Auto-advance | Description |
|---|---|---|---|---|---|
pending | Yes | No | — | execute | — |
completed | No | Yes | Yes | — | — |
failed | No | Yes | No | — | — |
State Diagram ​
Transitions ​
| From | Action | To | Description |
|---|---|---|---|
pending | execute | completed | — |
* (any state) | fail | failed | — |
API Usage ​
bash
POST /api/workflows/start
Content-Type: application/json
{
"workflow_type": "kubernetes.event.list",
"initial_data": {
"connection_uuid": "value",
"namespace": "value"
}
}