mirror of
https://github.com/portainer/portainer.git
synced 2025-07-24 07:49:41 +02:00
feat(kube/app): show image pull policy (#4785)
* feat(kube/app): show image pull policy * fix(kube/app): remove image pull policy * feat(kube/apps): show container image pull policy
This commit is contained in:
parent
fc0de913c3
commit
0cfa912d77
4 changed files with 13 additions and 1 deletions
|
@ -59,7 +59,9 @@ class KubernetesApplicationConverter {
|
|||
res.Note = data.metadata.annotations ? data.metadata.annotations[KubernetesPortainerApplicationNote] || '' : '';
|
||||
res.ApplicationName = data.metadata.labels ? data.metadata.labels[KubernetesPortainerApplicationNameLabel] || res.Name : res.Name;
|
||||
res.ResourcePool = data.metadata.namespace;
|
||||
res.Image = containers[0].image;
|
||||
if (containers.length) {
|
||||
res.Image = containers[0].image;
|
||||
}
|
||||
res.CreationDate = data.metadata.creationTimestamp;
|
||||
res.Env = _.without(_.flatMap(_.map(containers, 'env')), undefined);
|
||||
res.Pods = data.spec.selector ? KubernetesApplicationHelper.associatePodsAndApplication(pods, data.spec.selector) : [data];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue