Add multi-layer RIC instance selector
[portal/ric-dashboard.git] / webapp-frontend / src / app / caas-ingress / caas-ingress.component.html
1 <!--
2   ========================LICENSE_START=================================
3   O-RAN-SC
4   %%
5   Copyright (C) 2019 AT&T Intellectual Property
6   %%
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
10
11        http://www.apache.org/licenses/LICENSE-2.0
12  
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===================================
19 -->
20
21 <div class="caas-ingress__section">
22   <h3 class="rd-global-page-title">{{cluster}} Cluster Pods View</h3>
23
24   <table mat-table [dataSource]="dataSource" matSort class="caas-ingress-table mat-elevation-z8">
25
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>
29     </ng-container>
30
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>
34     </ng-container>
35
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>
39     </ng-container>
40
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>
44     </ng-container>
45
46     <ng-container matColumnDef="containers">
47       <mat-header-cell *matHeaderCellDef mat-sort-header> Containers </mat-header-cell>
48       <mat-cell *matCellDef="let element"> {{element.readyCount}}/{{element.spec.containers.length}} </mat-cell>
49     </ng-container>
50
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>
54     </ng-container>
55
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>
59     </ng-container>
60
61     <ng-container matColumnDef="noRecordsFound">
62       <mat-footer-cell *matFooterCellDef>No records found.</mat-footer-cell>
63     </ng-container>
64
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>
68
69   </table>
70
71   <div class="spinner-container" *ngIf="dataSource.loading$ | async">
72     <mat-spinner diameter=50></mat-spinner>
73   </div>
74
75 </div>