From 174e28b850aa3ef0cade6d27e1b9baeb71de7828 Mon Sep 17 00:00:00 2001 From: xAt0mZ Date: Mon, 26 Oct 2020 19:47:23 +0100 Subject: [PATCH] feat(k8s/application): app details for pods --- .../containers-datatable/containersDatatable.html | 4 ++-- .../containers-datatable/containersDatatable.js | 1 + app/kubernetes/converters/application.js | 4 ---- .../views/applications/edit/application.html | 12 +++++++++--- .../views/applications/edit/applicationController.js | 5 +++-- 5 files changed, 15 insertions(+), 11 deletions(-) diff --git a/app/kubernetes/components/datatables/application/containers-datatable/containersDatatable.html b/app/kubernetes/components/datatables/application/containers-datatable/containersDatatable.html index 8c291971d..1d77ab609 100644 --- a/app/kubernetes/components/datatables/application/containers-datatable/containersDatatable.html +++ b/app/kubernetes/components/datatables/application/containers-datatable/containersDatatable.html @@ -57,7 +57,7 @@ - + - +
+ Pod @@ -107,7 +107,7 @@ dir-paginate="item in ($ctrl.state.filteredDataSet = ($ctrl.dataset | filter:$ctrl.state.textFilter | orderBy:$ctrl.state.orderBy:$ctrl.state.reverseOrder | itemsPerPage: $ctrl.state.paginatedItemLimit: $ctrl.tableKey))" pagination-id="$ctrl.tableKey" > - {{ item.PodName }}{{ item.PodName }} {{ item.Name }} {{ item.Image }}
Status + Replicated Global {{ ctrl.application.RunningPodsCount }} / {{ ctrl.application.TotalPodsCount }} + {{ ctrl.application.Pods[0].Status }} +
Resource reservations
-
per instance
+
+ per instance +
CPU {{ ctrl.application.Requests.Cpu | kubernetesApplicationCPUValue }}
@@ -557,7 +562,8 @@ title-icon="fa-server" dataset="ctrl.allContainers" table-key="kubernetes.application.containers" - order-by="PodName" + is-pod="ctrl.application.ApplicationType === ctrl.KubernetesApplicationTypes.POD" + order-by="{{ ctrl.application.ApplicationType === ctrl.KubernetesApplicationTypes.POD ? 'Name' : 'PodName' }}" > diff --git a/app/kubernetes/views/applications/edit/applicationController.js b/app/kubernetes/views/applications/edit/applicationController.js index b3304df8c..773e2099c 100644 --- a/app/kubernetes/views/applications/edit/applicationController.js +++ b/app/kubernetes/views/applications/edit/applicationController.js @@ -1,7 +1,7 @@ import angular from 'angular'; import * as _ from 'lodash-es'; import * as JsonPatch from 'fast-json-patch'; -import { KubernetesApplicationDataAccessPolicies, KubernetesApplicationDeploymentTypes } from 'Kubernetes/models/application/models'; +import { KubernetesApplicationDataAccessPolicies, KubernetesApplicationDeploymentTypes, KubernetesApplicationTypes } from 'Kubernetes/models/application/models'; import KubernetesEventHelper from 'Kubernetes/helpers/eventHelper'; import KubernetesApplicationHelper from 'Kubernetes/helpers/application'; import { KubernetesServiceTypes } from 'Kubernetes/models/service/models'; @@ -123,6 +123,8 @@ class KubernetesApplicationController { this.KubernetesNamespaceHelper = KubernetesNamespaceHelper; + this.KubernetesApplicationDeploymentTypes = KubernetesApplicationDeploymentTypes; + this.KubernetesApplicationTypes = KubernetesApplicationTypes; this.ApplicationDataAccessPolicies = KubernetesApplicationDataAccessPolicies; this.KubernetesServiceTypes = KubernetesServiceTypes; this.KubernetesPodContainerTypes = KubernetesPodContainerTypes; @@ -340,7 +342,6 @@ class KubernetesApplicationController { SelectedRevision: undefined, }; - this.KubernetesApplicationDeploymentTypes = KubernetesApplicationDeploymentTypes; await this.getApplication(); await this.getEvents(); this.state.viewReady = true;