blob: efa3616b72d5bd709a4b9511a353ec9e276f4d72 [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.JS26570112024-07-05 21:35:46 +053019 <button *ngIf="getK8sType === 'repo'" type="button" class="btn btn-primary" (click)="infoK8s(getK8sType)"
20 placement="top" container="body" ngbTooltip="{{'INFO' | translate}}">
kumaran.m3b4814a2020-05-01 19:48:54 +053021 <i class="fas fa-info icons list" title="info"></i>
22 </button>
SANDHYA.JS26570112024-07-05 21:35:46 +053023 <button *ngIf="(isCluster || isProfile || isKSU) && getK8sType !== 'repo' && !checkRegister" [disabled]="state != 'CREATED'"
24 type="button" class="btn btn-primary" (click)="deleteK8s()" placement="top" container="body"
25 ngbTooltip="{{'DELETE' | translate}}">
kumaran.m3b4814a2020-05-01 19:48:54 +053026 <i class="far fa-trash-alt icons" title="delete"></i>
27 </button>
SANDHYA.JS26570112024-07-05 21:35:46 +053028 <button *ngIf="(!isCluster || !isProfile || !isKSU) && getK8sType === 'repo'" type="button" class="btn btn-primary"
29 (click)="deleteK8s()" placement="top" container="body" ngbTooltip="{{'DELETE' | translate}}">
30 <i class="far fa-trash-alt icons" title="delete"></i>
31 </button>
32 <button *ngIf="checkRegister && !isCluster && !isProfile && !isKSU && getK8sType !== 'repo'"
33 [disabled]="state != 'CREATED'" type="button" class="btn btn-primary" (click)="deleteK8s()" placement="top"
34 container="body" ngbTooltip="{{'DEREGISTER' | translate}}">
35 <i class="fas fa-window-close icons" title="deregister"></i>
36 </button>
37 <div *ngIf="isCluster && !isProfile && !isKSU && getK8sType !== 'repo'" class="btn-group" placement="bottom-right" ngbDropdown
38 display="dynamic" container="body">
39 <button type="button" class="btn btn-primary" [disabled]="state != 'CREATED'" ngbDropdownToggle placement="top" container="body"
40 ngbTooltip="{{'Attach Profile' | translate}}">
41 <i class="fas fa-link"></i>
42 </button>
43 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
44 <button type="button" class="btn btn-primary dropdown-item" placement="left" container="body"
45 (click)="editClusterProfile('infra-config')" ngbTooltip="{{'PAGE.K8S.ATTACHINFRACONFIG' | translate}}">
46 <i class="fa fa-link"></i> {{'PAGE.K8S.ATTACHINFRACONFIG' | translate}}
47 </button>
48 <button type="button" class="btn btn-primary dropdown-item" (click)="editClusterProfile('infra-controller')"
49 placement="left" container="body" ngbTooltip="{{'PAGE.K8S.ATTACHINFRACONTROLLER' | translate}}">
50 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHINFRACONTROLLER' | translate}}
51 </button>
52 <button type="button" class="btn btn-primary dropdown-item" placement="left"
53 (click)="editClusterProfile('app-profile')" container="body" ngbTooltip="{{'PAGE.K8S.ATTACHAPP' | translate}}">
54 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHAPP' | translate}}
55 </button>
56 <button type="button" class="btn btn-primary dropdown-item" placement="left"
57 (click)="editClusterProfile('resource-profile')" container="body"
58 ngbTooltip="{{'PAGE.K8S.ATTACHRESOURCE' | translate}}">
59 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHRESOURCE' | translate}}
60 </button>
61 </div>
62 </div>
63 <div *ngIf="(isProfile || isKSU || isCluster && getK8sType !== 'repo')" class="btn-group" ngbDropdown display="dynamic" container="body">
64 <button type="button" [disabled]="state != 'CREATED'" class="btn btn-primary dropdown-toggle action-button" ngbDropdownToggle>
65 {{'ACTION' | translate}}
66 </button>
67 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
68 <button *ngIf="isProfile && !KSU && !isCluster" type="button" class="btn btn-primary dropdown-item"
69 placement="left" container="body" (click)="editProfile(getK8sType)" ngbTooltip="{{'PAGE.K8S.EDITPROFILE' | translate}}">
70 <i class="fa fa-edit icons"></i> {{'PAGE.K8S.EDITPROFILE' | translate}}
71 </button>
72 <button *ngIf="isKSU && !isProfile && !isCluster" type="button" class="btn btn-primary dropdown-item"
73 placement="left" (click)="moveKsu()" container="body" ngbTooltip="{{'PAGE.K8S.MOVE' | translate}}">
74 <i class="fas fa-truck-moving"></i> {{'PAGE.K8S.MOVE' | translate}}
75 </button>
76 <button *ngIf="isKSU && !isProfile && !isCluster" type="button" class="btn btn-primary dropdown-item"
77 placement="left" (click)="cloneKsu()" container="body" ngbTooltip="{{'PAGE.K8S.CLONE' | translate}}">
78 <i class="fa fa-clone icons"></i> {{'PAGE.K8S.CLONE' | translate}}
79 </button>
80 <button *ngIf="isKSU && !isProfile && !isCluster" type="button" class="btn btn-primary dropdown-item"
81 placement="left" (click)="editKsu()" container="body" ngbTooltip="{{'EDIT' | translate}}">
82 <i class="fa fa-edit icons"></i> {{'EDIT' | translate}}
83 </button>
84 <button *ngIf="!isKSU && !isProfile && isCluster" type="button" class="btn btn-primary dropdown-item"
85 placement="left" (click)="editCluster('upgrade')" container="body" ngbTooltip="{{'PAGE.K8S.UPGRADE' | translate}}">
86 <i class="fa fa-arrow-up"></i> {{'PAGE.K8S.UPGRADE' | translate}}
87 </button>
88 <button *ngIf="!isKSU && !isProfile && isCluster" type="button" class="btn btn-primary dropdown-item"
89 placement="left" (click)="editCluster('scale')" container="body" ngbTooltip="{{'PAGE.K8S.SCALE' | translate}}">
90 <i class="fas fa-compress-alt"></i> {{'PAGE.K8S.SCALE' | translate}}
91 </button>
SANDHYA.JSb5347152024-10-15 11:41:45 +053092 <button *ngIf="!isKSU && !isProfile && isCluster" type="button" class="btn btn-primary dropdown-item"
93 placement="left" (click)="getCredentials()" container="body" ngbTooltip="{{'PAGE.K8S.GETCREDENTIALS' | translate}}">
94 <i class="fas fa-download icons"></i> {{'PAGE.K8S.GETCREDENTIALS' | translate}}
95 </button>
SANDHYA.JS26570112024-07-05 21:35:46 +053096 </div>
SANDHYA.JSb5347152024-10-15 11:41:45 +053097 </div>
98 <app-loader [waitingMessage]="message" *ngIf="isLoadingDownloadResult"></app-loader>