1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

fix(kube): configmaps and secrets from envFrom in the app detail screen [EE-6282] (#10742)

* fix configmaps and secrets from envFrom

* adress review comments
This commit is contained in:
Prabhat Khera 2023-12-06 16:02:26 +13:00 committed by GitHub
parent 1d279428a7
commit bd5ba7b5d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 113 additions and 66 deletions

View file

@ -21,7 +21,15 @@ export async function getNamespacePods(
},
}
);
return data.items;
const items = (data.items || []).map(
(pod) =>
<Pod>{
...pod,
kind: 'Pod',
apiVersion: data.apiVersion,
}
);
return items;
} catch (e) {
throw parseKubernetesAxiosError(
e,