Skip to content
Snippets Groups Projects
Commit 252ea280 authored by Gregor Cerar's avatar Gregor Cerar
Browse files

update

parent 8186e35f
No related branches found
No related tags found
No related merge requests found
Pipeline #65751 passed with warnings
......@@ -326,6 +326,10 @@ async def get_pod_details(pod_name_or_uid: str) -> Optional[PodInfoExtended]:
# Step 2: Get the Deployment owner of the ReplicaSet
query = f'kube_replicaset_owner{{namespace="{pod["namespace"]}", replicaset="{replicaset_name}"}}'
metric, _ = await _query_instant(client, cfg, query)
if metric is None:
return None
deployment_name = metric.get("owner_name")
if deployment_name is None:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment