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:
parent
1d279428a7
commit
bd5ba7b5d0
5 changed files with 113 additions and 66 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue