Skip to content

Commit

Permalink
try catch if nul
Browse files Browse the repository at this point in the history
  • Loading branch information
estebanmathia committed Oct 24, 2023
1 parent 7035de4 commit 25a78a2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Kexa/services/addOn/kubernetesGathering.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ export async function kubernetesListing(isPathKubeFile: boolean): Promise<any> {
collectPods(k8sApiCore, item.metadata.name),
];
const [helmData, pods] = await Promise.all(promises);
helmData.forEach((helmItem: any) => {
helmData?.forEach((helmItem: any) => {
kubResources["helm"].push(helmItem);
});
pods.body.items.forEach((pod: any) => {
pods?.body?.items?.forEach((pod: any) => {
pod.metadata.namespace = item.metadata.name;
kubResources["pods"].push(pod);
});
Expand Down

0 comments on commit 25a78a2

Please sign in to comment.