blob: f5456060b0907a13a25e95408cee70eeca6fd5a2 [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.JSb772de02024-12-10 15:21:03 +053019 <button *ngIf="getK8sType === 'repo' || !isCluster && !isKSU && !isProfile" type="button" class="btn btn-primary"
20 (click)="infoK8s(getK8sType)" placement="top" container="body" ngbTooltip="{{'INFO' | translate}}">
21 <i class="fas fa-info icons list" title="info"></i>
22 </button>
23 <button *ngIf="isCluster && !isKSU && !isProfile " type="button" class="btn btn-primary" (click)="infoK8s(getK8sType)"
SANDHYA.JS26570112024-07-05 21:35:46 +053024 placement="top" container="body" ngbTooltip="{{'INFO' | translate}}">
kumaran.m3b4814a2020-05-01 19:48:54 +053025 <i class="fas fa-info icons list" title="info"></i>
26 </button>
SANDHYA.JS52af4802025-05-22 17:00:15 +053027 <button *ngIf="(isCluster || isProfile || isKSU)" type="button" class="btn btn-primary" (click)="deleteK8s(false)"
SANDHYA.JSb772de02024-12-10 15:21:03 +053028 placement="top" container="body" ngbTooltip="{{'DELETE' | translate}}">
kumaran.m3b4814a2020-05-01 19:48:54 +053029 <i class="far fa-trash-alt icons" title="delete"></i>
30 </button>
SANDHYA.JS52af4802025-05-22 17:00:15 +053031 <button *ngIf="getK8sType === 'repo'" type="button" class="btn btn-primary" (click)="deleteK8s(false)" placement="top"
SANDHYA.JSb772de02024-12-10 15:21:03 +053032 container="body" ngbTooltip="{{'DELETE' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +053033 <i class="far fa-trash-alt icons" title="delete"></i>
34 </button>
SANDHYA.JS52af4802025-05-22 17:00:15 +053035 <button *ngIf="!isCluster && !isKSU && !isProfile && getK8sType !== 'repo' " type="button" class="btn btn-primary" (click)="deleteK8s(false)" placement="top"
SANDHYA.JS26570112024-07-05 21:35:46 +053036 container="body" ngbTooltip="{{'DEREGISTER' | translate}}">
37 <i class="fas fa-window-close icons" title="deregister"></i>
38 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +053039 <button *ngIf="isProfile" type="button" class="btn btn-primary" placement="top" container="body"
40 (click)="editProfile(getK8sType)" ngbTooltip="{{'PAGE.K8S.EDITPROFILE' | translate}}">
41 <i class="fa fa-edit icons"></i>
42 </button>
SANDHYA.JS52af4802025-05-22 17:00:15 +053043 <button *ngIf="(isCluster || isProfile || isKSU || !isCluster && getK8sType !== 'repo')" type="button" class="btn btn-primary" (click)="deleteK8s(true)"
44 placement="top" container="body" [disabled]="!isCluster && !isProfile && !isKSU" ngbTooltip="{{'FORCEDELETE' | translate}}">
45 <i class="fas fa-trash-alt icons text-danger" title="delete"></i>
46 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +053047 <div *ngIf="isCluster || !isCluster && !isKSU && !isProfile && getK8sType !== 'repo' " class="btn-group" placement="bottom-right" ngbDropdown
SANDHYA.JS26570112024-07-05 21:35:46 +053048 display="dynamic" container="body">
SANDHYA.JSa3ff32a2025-02-13 16:24:46 +053049 <button type="button" class="btn btn-primary" [disabled]="!isCluster || state != 'CREATED'" ngbDropdownToggle placement="top"
SANDHYA.JSb772de02024-12-10 15:21:03 +053050 container="body" ngbTooltip="{{'Attach Profile' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +053051 <i class="fas fa-link"></i>
52 </button>
53 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
54 <button type="button" class="btn btn-primary dropdown-item" placement="left" container="body"
55 (click)="editClusterProfile('infra-config')" ngbTooltip="{{'PAGE.K8S.ATTACHINFRACONFIG' | translate}}">
56 <i class="fa fa-link"></i> {{'PAGE.K8S.ATTACHINFRACONFIG' | translate}}
57 </button>
58 <button type="button" class="btn btn-primary dropdown-item" (click)="editClusterProfile('infra-controller')"
59 placement="left" container="body" ngbTooltip="{{'PAGE.K8S.ATTACHINFRACONTROLLER' | translate}}">
60 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHINFRACONTROLLER' | translate}}
61 </button>
62 <button type="button" class="btn btn-primary dropdown-item" placement="left"
63 (click)="editClusterProfile('app-profile')" container="body" ngbTooltip="{{'PAGE.K8S.ATTACHAPP' | translate}}">
64 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHAPP' | translate}}
65 </button>
66 <button type="button" class="btn btn-primary dropdown-item" placement="left"
67 (click)="editClusterProfile('resource-profile')" container="body"
68 ngbTooltip="{{'PAGE.K8S.ATTACHRESOURCE' | translate}}">
69 <i class="fas fa-link"></i> {{'PAGE.K8S.ATTACHRESOURCE' | translate}}
70 </button>
71 </div>
72 </div>
SANDHYA.JSb772de02024-12-10 15:21:03 +053073 <div *ngIf="((isCluster || !isCluster)&& !isKSU && !isProfile && getK8sType !== 'repo' )" class="btn-group" ngbDropdown display="dynamic" container="body">
SANDHYA.JSa3ff32a2025-02-13 16:24:46 +053074 <button type="button" [disabled]="!isCluster || state != 'CREATED'" class="btn btn-primary dropdown-toggle action-button"
SANDHYA.JSb772de02024-12-10 15:21:03 +053075 ngbDropdownToggle>
SANDHYA.JS26570112024-07-05 21:35:46 +053076 {{'ACTION' | translate}}
77 </button>
78 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
SANDHYA.JSb772de02024-12-10 15:21:03 +053079 <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left"
SANDHYA.JSa3ff32a2025-02-13 16:24:46 +053080 (click)="editCluster('update')" container="body" ngbTooltip="{{'PAGE.K8S.UPDATECLUSTER' | translate}}">
81 <i class="fa fa-edit icons"></i> {{'PAGE.K8S.UPDATECLUSTER' | translate}}
82 </button>
83 <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left"
SANDHYA.JSb772de02024-12-10 15:21:03 +053084 (click)="editCluster('upgrade')" container="body" ngbTooltip="{{'PAGE.K8S.UPGRADECLUSTER' | translate}}">
85 <i class="fa fa-arrow-up"></i> {{'PAGE.K8S.UPGRADECLUSTER' | translate}}
SANDHYA.JS26570112024-07-05 21:35:46 +053086 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +053087 <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left"
SANDHYA.JSb772de02024-12-10 15:21:03 +053088 (click)="getCredentials()" container="body" ngbTooltip="{{'PAGE.K8S.GETCREDENTIALS' | translate}}">
89 <i class="fas fa-download icons"></i> {{'PAGE.K8S.GETCREDENTIALS' | translate}}
90 </button>
91 </div>
92 </div>
93 <div *ngIf="isKSU" class="btn-group" ngbDropdown display="dynamic" container="body">
SANDHYA.JS52af4802025-05-22 17:00:15 +053094 <button type="button" class="btn btn-primary dropdown-toggle action-button" [disabled]="state != 'CREATED'" ngbDropdownToggle>
SANDHYA.JSb772de02024-12-10 15:21:03 +053095 {{'ACTION' | translate}}
96 </button>
97 <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu>
98 <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="moveKsu()"
99 container="body" ngbTooltip="{{'PAGE.K8S.MOVE' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +0530100 <i class="fas fa-truck-moving"></i> {{'PAGE.K8S.MOVE' | translate}}
101 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +0530102 <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="cloneKsu()"
103 container="body" ngbTooltip="{{'PAGE.K8S.CLONE' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +0530104 <i class="fa fa-clone icons"></i> {{'PAGE.K8S.CLONE' | translate}}
105 </button>
SANDHYA.JSb772de02024-12-10 15:21:03 +0530106 <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="editKsu()"
107 container="body" ngbTooltip="{{'EDIT' | translate}}">
SANDHYA.JS26570112024-07-05 21:35:46 +0530108 <i class="fa fa-edit icons"></i> {{'EDIT' | translate}}
109 </button>
SANDHYA.JS26570112024-07-05 21:35:46 +0530110 </div>
SANDHYA.JSb5347152024-10-15 11:41:45 +0530111 </div>
112 <app-loader [waitingMessage]="message" *ngIf="isLoadingDownloadResult"></app-loader>