Skip to content

Commit

Permalink
Do not merge - remove '*' in event table enrichments (#1674)
Browse files Browse the repository at this point in the history
* Update event_enrichments.py

* Update event_enrichments.py

* Update event_enrichments.py

* Update event_enrichments.py

* Update event_enrichments.py
  • Loading branch information
aantn authored Jan 6, 2025
1 parent 609befb commit f01174e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions playbooks/robusta_playbooks/event_enrichments.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def event_resource_events(event: EventChangeEvent):
return
obj = event.obj.regarding
events_table = get_resource_events_table(
"*Related Events*",
"Related Events",
obj.kind,
obj.name,
obj.namespace,
Expand Down Expand Up @@ -245,7 +245,7 @@ def resource_events_enricher(event: KubernetesResourceEvent, params: ExtendedEve
[
EventsBlock(
events=events_row,
table_name=f"*{kind} events:*",
table_name=f"{kind} Events",
column_renderers={"time": RendererType.DATETIME},
headers=["reason", "type", "time", "kind", "name", "message"],
rows=rows,
Expand All @@ -269,7 +269,7 @@ def pod_events_enricher(event: PodEvent, params: EventEnricherParams):
return

events_table_block = get_resource_events_table(
"*Pod events:*",
"Pod Events",
pod.kind,
pod.metadata.name,
pod.metadata.namespace,
Expand All @@ -292,7 +292,7 @@ def enrich_pod_with_node_events(event: PodEvent, params: EventEnricherParams):
"""
pod = event.get_pod()
events_table_block = get_resource_events_table(
"*Node events:*",
"Node Events",
kind="Node",
name=pod.spec.nodeName,
included_types=params.included_types,
Expand Down Expand Up @@ -325,7 +325,7 @@ def deployment_events_enricher(event: DeploymentEvent, params: ExtendedEventEnri
selected_pods = pods if len(pods) <= params.max_pods else pods[: params.max_pods]
for pod in selected_pods:
events_table_block = get_resource_events_table(
f"*Pod events for {pod.metadata.name}:*",
f"Pod events for {pod.metadata.name}",
"Pod",
pod.metadata.name,
pod.metadata.namespace,
Expand All @@ -341,7 +341,7 @@ def deployment_events_enricher(event: DeploymentEvent, params: ExtendedEventEnri
)
else:
events_table_block = get_resource_events_table(
"*Deployment events:*",
"Deployment Events",
dep.kind,
dep.metadata.name,
dep.metadata.namespace,
Expand Down

0 comments on commit f01174e

Please sign in to comment.