probe Event

Fetch Kubernetes Events

Retrieve Kubernetes events across all namespaces

Run it now
View details
Typeprobe
Modulechaosk8s.event.probes
Nameget_events
Returnlist

Usage

JSON

{
  "name": "get-events",
  "type": "probe",
  "provider": {
    "type": "python",
    "module": "chaosk8s.event.probes",
    "func": "get_events"
  }
}

YAML

name: get-events
provider:
  func: get_events
  module: chaosk8s.event.probes
  type: python
type: probe

Arguments

NameTypeDefaultRequiredTitleDescriptionPlaceholder
label_selectorstringNoLabel SelectorReduce the returned list of events to the matching selector
field_selectorstringNoField SelectorReduce the returned list of events to the matching selectorregarding.kind=Pod,regarding.name=my-pod
limitinteger100NoLimitLimit to that number of events

Retrieve Kubernetes events across all namespaces. If a label_selector is set, filter to that selector only.

Signature

def get_events(label_selector: str = None,
               limit: int = 100,
               configuration: Dict[str, Dict[str, str]] = None,
               secrets: Dict[str, Dict[str, str]] = None) -> Dict[str, Any]:
    pass