blob: 57f44809112f50a8d60bc13f7097dd0c375195b3 [file] [log] [blame]
kumaran.m3b4814a2020-05-01 19:48:54 +05301<!--
2Copyright 2020 TATA ELXSI
3
4Licensed under the Apache License, Version 2.0 (the 'License');
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15
16Author: KUMARAN M (kumaran.m@tataelxsi.co.in), RAJESH S (rajesh.s@tataelxsi.co.in), BARATH KUMAR R (barath.r@tataelxsi.co.in)
17-->
18<div class="btn-group list action" role="group">
SANDHYA.JS92379ec2025-06-13 17:29:35 +053019 <button *ngIf="(isCluster || !isCluster) && !isKSU && !isNode && !isProfile && getK8sType !== 'repo'" type="button"
20 class="btn btn-primary" (click)="nodeK8s()" placement="top" container="body"
21 ngbTooltip="{{'PAGE.K8S.DETAILS' | translate}}" [disabled]="value.state !== 'READY' || !isCluster ">
22 <i class="fa fa-server" title="details"></i>
23 </button>
24 <button *ngIf="!isProfile" type="button" class="btn btn-primary" (click)="infoK8s(getK8sType)" placement="top"
25 container="body" ngbTooltip="{{'INFO' | translate}}">
SANDHYA.JSb772de02024-12-10 15:21:03 +053026 <i class="fas fa-info icons list" title="info"></i>
27 </button>
SANDHYA.JS92379ec2025-06-13 17:29:35 +053028 <button *ngIf="(isCluster || isProfile || isKSU || isNode)" type="button" class="btn btn-primary"
29 (click)="deleteK8s()" placement="top" container="body" ngbTooltip="{{'DELETE' | translate}}"
30 [disabled]="value.state !== 'READY' && value.state !== 'ERROR'">
kumaran.m3b4814a2020-05-01 19:48:54 +053031 <i class="far fa-trash-alt icons" title="delete"></i>
32 </button>
SANDHYA.JS52af4802025-05-22 17:00:15 +053033 <button *ngIf="getK8sType === 'repo'" type="button" class="btn btn-primary" (click)="deleteK8s(false)" placement="top"
SANDHYA.JSb772de02024-12-10 15:21:03 +053034 container="body" ngbTooltip="{{'DELETE' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +053035 <i class="far fa-trash-alt icons" title="delete"></i>
36 </button>
SANDHYA.JS92379ec2025-06-13 17:29:35 +053037 <button *ngIf="!isCluster && !isKSU && !isProfile && !isNode && getK8sType !== 'repo' " type="button"
38 class="btn btn-primary" (click)="deleteK8s()" placement="top" container="body"
39 [disabled]="value.state !== 'READY' && value.state !== 'ERROR' && value.state !== 'ENABLED' && value.state !== 'DEGRADED'"
40 ngbTooltip="{{'DEREGISTER' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +053041 <i class="fas fa-window-close icons" title="deregister"></i>
42 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +053043 <button *ngIf="isProfile" type="button" class="btn btn-primary" placement="top" container="body"
SANDHYA.JS92379ec2025-06-13 17:29:35 +053044 (click)="editProfile(getK8sType)" [disabled]="value.state !== 'READY'"
45 ngbTooltip="{{'PAGE.K8S.EDITPROFILE' | translate}}">
SANDHYA.JSb772de02024-12-10 15:21:03 +053046 <i class="fa fa-edit icons"></i>
47 </button>
SANDHYA.JS92379ec2025-06-13 17:29:35 +053048 <button *ngIf="(isCluster || isProfile || isKSU || !isCluster && getK8sType !== 'repo')" type="button"
49 class="btn btn-primary" (click)="deleteK8s(true)" placement="top" container="body"
50 [disabled]="!isCluster && !isProfile && !isKSU" ngbTooltip="{{'FORCEDELETE' | translate}}">
SANDHYA.JS52af4802025-05-22 17:00:15 +053051 <i class="fas fa-trash-alt icons text-danger" title="delete"></i>
52 </button>
SANDHYA.JS92379ec2025-06-13 17:29:35 +053053 <div *ngIf="(isCluster || !isCluster) && !isKSU && !isNode && !isProfile && getK8sType !== 'repo'" class="btn-group"
54 placement="bottom-right" ngbDropdown display="dynamic" container="body">
55 <button type="button" class="btn btn-primary" [disabled]="value.state !== 'READY' || !isCluster" ngbDropdownToggle
56 placement="top" container="body" ngbTooltip="{{'Attach Profile' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +053057 <i class="fas fa-link"></i>
58 </button>
59 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
60 <button type="button" class="btn btn-primary dropdown-item" placement="left" container="body"
61 (click)="editClusterProfile('infra-config')" ngbTooltip="{{'PAGE.K8S.ATTACHINFRACONFIG' | translate}}">
62 <i class="fa fa-link"></i> {{'PAGE.K8S.ATTACHINFRACONFIG' | translate}}
63 </button>
64 <button type="button" class="btn btn-primary dropdown-item" (click)="editClusterProfile('infra-controller')"
65 placement="left" container="body" ngbTooltip="{{'PAGE.K8S.ATTACHINFRACONTROLLER' | translate}}">
66 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHINFRACONTROLLER' | translate}}
67 </button>
68 <button type="button" class="btn btn-primary dropdown-item" placement="left"
69 (click)="editClusterProfile('app-profile')" container="body" ngbTooltip="{{'PAGE.K8S.ATTACHAPP' | translate}}">
70 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHAPP' | translate}}
71 </button>
72 <button type="button" class="btn btn-primary dropdown-item" placement="left"
73 (click)="editClusterProfile('resource-profile')" container="body"
74 ngbTooltip="{{'PAGE.K8S.ATTACHRESOURCE' | translate}}">
75 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHRESOURCE' | translate}}
76 </button>
77 </div>
78 </div>
SANDHYA.JS92379ec2025-06-13 17:29:35 +053079 <div *ngIf="(isCluster || !isCluster) && !isKSU && !isNode && !isProfile && getK8sType !== 'repo'" class="btn-group"
80 ngbDropdown display="dynamic" container="body">
81 <button type="button" [disabled]="(value.state !== 'READY' || !isCluster)"
82 class="btn btn-primary dropdown-toggle action-button" ngbDropdownToggle>
SANDHYA.JS26570112024-07-05 21:35:46 +053083 {{'ACTION' | translate}}
84 </button>
85 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
SANDHYA.JSb772de02024-12-10 15:21:03 +053086 <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left"
SANDHYA.JS92379ec2025-06-13 17:29:35 +053087 (click)="editCluster('upgrade')" container="body" ngbTooltip="{{'Version Upgrade' | translate}}">
88 <i class="fa fa-arrow-up"></i> {{'PAGE.K8S.VERSIONUPGRADE' | translate}}
SANDHYA.JSa3ff32a2025-02-13 16:24:46 +053089 </button>
90 <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left"
SANDHYA.JS92379ec2025-06-13 17:29:35 +053091 (click)="editCluster('update')" container="body" ngbTooltip="{{'Update Cluster' | translate}}">
92 <i class="fas fa-arrows-alt-h"></i> {{'PAGE.K8S.UPDATECLUSTER' | translate}}
SANDHYA.JS26570112024-07-05 21:35:46 +053093 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +053094 <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left"
SANDHYA.JSb772de02024-12-10 15:21:03 +053095 (click)="getCredentials()" container="body" ngbTooltip="{{'PAGE.K8S.GETCREDENTIALS' | translate}}">
96 <i class="fas fa-download icons"></i> {{'PAGE.K8S.GETCREDENTIALS' | translate}}
97 </button>
98 </div>
99 </div>
100 <div *ngIf="isKSU" class="btn-group" ngbDropdown display="dynamic" container="body">
SANDHYA.JS92379ec2025-06-13 17:29:35 +0530101 <button type="button" class="btn btn-primary dropdown-toggle action-button" ngbDropdownToggle
102 [disabled]="value.state !== 'READY'">
SANDHYA.JSb772de02024-12-10 15:21:03 +0530103 {{'ACTION' | translate}}
104 </button>
105 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
106 <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="moveKsu()"
107 container="body" ngbTooltip="{{'PAGE.K8S.MOVE' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +0530108 <i class="fas fa-truck-moving"></i> {{'PAGE.K8S.MOVE' | translate}}
109 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +0530110 <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="cloneKsu()"
111 container="body" ngbTooltip="{{'PAGE.K8S.CLONE' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +0530112 <i class="fa fa-clone icons"></i> {{'PAGE.K8S.CLONE' | translate}}
113 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +0530114 <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="editKsu()"
115 container="body" ngbTooltip="{{'EDIT' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +0530116 <i class="fa fa-edit icons"></i> {{'EDIT' | translate}}
117 </button>
SANDHYA.JS26570112024-07-05 21:35:46 +0530118 </div>
SANDHYA.JSb5347152024-10-15 11:41:45 +0530119 </div>
SANDHYA.JS92379ec2025-06-13 17:29:35 +0530120 <div *ngIf="isNode" class="btn-group" ngbDropdown display="dynamic" container="body">
121 <button type="button" class="btn btn-primary dropdown-toggle action-button" ngbDropdownToggle
122 [disabled]="value.state !== 'READY'">
123 {{'ACTION' | translate}}
124 </button>
125 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
126 <button type="button" class="btn btn-primary dropdown-item" placement="left" (click)="scaling('k8s-scale')"
127 container="body" ngbTooltip="{{'PAGE.K8S.K8SSCALING' | translate}}">
128 <i class="fas fa-arrows-alt-v"></i> {{'PAGE.K8S.K8SSCALING' | translate}}
129 </button>
130 <button type="button" class="btn btn-primary dropdown-item" placement="left" (click)="scaling('edit-node')"
131 container="body" ngbTooltip="{{'EDIT' | translate}}">
132 <i class="fa fa-arrow-up"></i> {{'EDIT' | translate}}
133 </button>
134 </div>
135 </div>
SANDHYA.JSb5347152024-10-15 11:41:45 +0530136 <app-loader [waitingMessage]="message" *ngIf="isLoadingDownloadResult"></app-loader>