2 ========================LICENSE_START=================================
5 Copyright (C) 2019 AT&T Intellectual Property
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ========================LICENSE_END===================================
21 <div class="caas-ingress__section">
22 <h3 class="rd-global-page-title">{{cluster}} Cluster Pods View</h3>
24 <table mat-table [dataSource]="dataSource" matSort class="caas-ingress-table mat-elevation-z8">
26 <ng-container matColumnDef="namespace">
27 <mat-header-cell *matHeaderCellDef mat-sort-header> Namespace </mat-header-cell>
28 <mat-cell *matCellDef="let element"> {{element.metadata.namespace}} </mat-cell>
31 <ng-container matColumnDef="name">
32 <mat-header-cell *matHeaderCellDef mat-sort-header> Name </mat-header-cell>
33 <mat-cell *matCellDef="let element"> {{element.metadata.name}} </mat-cell>
36 <ng-container matColumnDef="status">
37 <mat-header-cell *matHeaderCellDef mat-sort-header> Status </mat-header-cell>
38 <mat-cell *matCellDef="let element"> {{element.status.phase}} </mat-cell>
41 <ng-container matColumnDef="ip">
42 <mat-header-cell *matHeaderCellDef mat-sort-header> Pod IP </mat-header-cell>
43 <mat-cell *matCellDef="let element"> {{element.status.podIP}} </mat-cell>
46 <ng-container matColumnDef="containers">
47 <mat-header-cell *matHeaderCellDef mat-sort-header> Containers </mat-header-cell>
48 <mat-cell *matCellDef="let element"> {{element.spec.containers.length}} </mat-cell>
51 <ng-container matColumnDef="restartCount">
52 <mat-header-cell *matHeaderCellDef mat-sort-header> Restarts </mat-header-cell>
53 <mat-cell *matCellDef="let element"> {{element.restartCount}} </mat-cell>
56 <ng-container matColumnDef="creationTime">
57 <mat-header-cell *matHeaderCellDef mat-sort-header> Creation Time </mat-header-cell>
58 <mat-cell *matCellDef="let element"> {{element.metadata.creationTimestamp}} </mat-cell>
61 <ng-container matColumnDef="noRecordsFound">
62 <mat-footer-cell *matFooterCellDef>No records found.</mat-footer-cell>
65 <mat-header-row *matHeaderRowDef="displayedColumns"></mat-header-row>
66 <mat-row *matRowDef="let row; columns: displayedColumns;"></mat-row>
67 <mat-footer-row *matFooterRowDef="['noRecordsFound']" [ngClass]="{'display-none': dataSource.rowCount > 0}"></mat-footer-row>
71 <div class="spinner-container" *ngIf="dataSource.loading$ | async">
72 <mat-spinner diameter=50></mat-spinner>