Fix: The resource topology fails to display the pods under the job (#5566)

Signed-off-by: hanzhaoyang <hanzhaoyang@jd.com>
This commit is contained in:
hanzhaoyang
2023-02-27 12:55:56 +08:00
parent 0d273b0ccb
commit c0327918fb
+9
View File
@@ -108,6 +108,15 @@ func init() {
}),
GroupResourceType: GroupResourceType{Group: "apps", Kind: "DaemonSet"},
},
ChildrenResourcesRule{
GroupResourceType: GroupResourceType{Group: "batch", Kind: "Job"},
SubResources: buildSubResources([]*SubResourceSelector{
{
ResourceType: ResourceType{APIVersion: "v1", Kind: "Pod"},
listOptions: defaultWorkloadLabelListOption,
},
}),
},
ChildrenResourcesRule{
GroupResourceType: GroupResourceType{Group: "", Kind: "Service"},
SubResources: buildSubResources([]*SubResourceSelector{