| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 1 | <!-- |
| 2 | Copyright 2020 TATA ELXSI |
| 3 | |
| 4 | Licensed under the Apache License, Version 2.0 (the 'License'); |
| 5 | you may not use this file except in compliance with the License. |
| 6 | You may obtain a copy of the License at |
| 7 | |
| 8 | http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | |
| 10 | Unless required by applicable law or agreed to in writing, software |
| 11 | distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | See the License for the specific language governing permissions and |
| 14 | limitations under the License. |
| 15 | |
| 16 | Author: 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.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 19 | <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.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 24 | placement="top" container="body" ngbTooltip="{{'INFO' | translate}}"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 25 | <i class="fas fa-info icons list" title="info"></i> |
| 26 | </button> |
| SANDHYA.JS | 52af480 | 2025-05-22 17:00:15 +0530 | [diff] [blame] | 27 | <button *ngIf="(isCluster || isProfile || isKSU)" type="button" class="btn btn-primary" (click)="deleteK8s(false)" |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 28 | placement="top" container="body" ngbTooltip="{{'DELETE' | translate}}"> |
| kumaran.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 29 | <i class="far fa-trash-alt icons" title="delete"></i> |
| 30 | </button> |
| SANDHYA.JS | 52af480 | 2025-05-22 17:00:15 +0530 | [diff] [blame] | 31 | <button *ngIf="getK8sType === 'repo'" type="button" class="btn btn-primary" (click)="deleteK8s(false)" placement="top" |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 32 | container="body" ngbTooltip="{{'DELETE' | translate}}"> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 33 | <i class="far fa-trash-alt icons" title="delete"></i> |
| 34 | </button> |
| SANDHYA.JS | 52af480 | 2025-05-22 17:00:15 +0530 | [diff] [blame] | 35 | <button *ngIf="!isCluster && !isKSU && !isProfile && getK8sType !== 'repo' " type="button" class="btn btn-primary" (click)="deleteK8s(false)" placement="top" |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 36 | container="body" ngbTooltip="{{'DEREGISTER' | translate}}"> |
| 37 | <i class="fas fa-window-close icons" title="deregister"></i> |
| 38 | </button> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 39 | <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.JS | 52af480 | 2025-05-22 17:00:15 +0530 | [diff] [blame] | 43 | <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.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 47 | <div *ngIf="isCluster || !isCluster && !isKSU && !isProfile && getK8sType !== 'repo' " class="btn-group" placement="bottom-right" ngbDropdown |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 48 | display="dynamic" container="body"> |
| SANDHYA.JS | a3ff32a | 2025-02-13 16:24:46 +0530 | [diff] [blame] | 49 | <button type="button" class="btn btn-primary" [disabled]="!isCluster || state != 'CREATED'" ngbDropdownToggle placement="top" |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 50 | container="body" ngbTooltip="{{'Attach Profile' | translate}}"> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 51 | <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.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 73 | <div *ngIf="((isCluster || !isCluster)&& !isKSU && !isProfile && getK8sType !== 'repo' )" class="btn-group" ngbDropdown display="dynamic" container="body"> |
| SANDHYA.JS | a3ff32a | 2025-02-13 16:24:46 +0530 | [diff] [blame] | 74 | <button type="button" [disabled]="!isCluster || state != 'CREATED'" class="btn btn-primary dropdown-toggle action-button" |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 75 | ngbDropdownToggle> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 76 | {{'ACTION' | translate}} |
| 77 | </button> |
| 78 | <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 79 | <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left" |
| SANDHYA.JS | a3ff32a | 2025-02-13 16:24:46 +0530 | [diff] [blame] | 80 | (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.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 84 | (click)="editCluster('upgrade')" container="body" ngbTooltip="{{'PAGE.K8S.UPGRADECLUSTER' | translate}}"> |
| 85 | <i class="fa fa-arrow-up"></i> {{'PAGE.K8S.UPGRADECLUSTER' | translate}} |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 86 | </button> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 87 | <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left" |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 88 | (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.JS | 52af480 | 2025-05-22 17:00:15 +0530 | [diff] [blame] | 94 | <button type="button" class="btn btn-primary dropdown-toggle action-button" [disabled]="state != 'CREATED'" ngbDropdownToggle> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 95 | {{'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.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 100 | <i class="fas fa-truck-moving"></i> {{'PAGE.K8S.MOVE' | translate}} |
| 101 | </button> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 102 | <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="cloneKsu()" |
| 103 | container="body" ngbTooltip="{{'PAGE.K8S.CLONE' | translate}}"> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 104 | <i class="fa fa-clone icons"></i> {{'PAGE.K8S.CLONE' | translate}} |
| 105 | </button> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 106 | <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="editKsu()" |
| 107 | container="body" ngbTooltip="{{'EDIT' | translate}}"> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 108 | <i class="fa fa-edit icons"></i> {{'EDIT' | translate}} |
| 109 | </button> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 110 | </div> |
| SANDHYA.JS | b534715 | 2024-10-15 11:41:45 +0530 | [diff] [blame] | 111 | </div> |
| 112 | <app-loader [waitingMessage]="message" *ngIf="isLoadingDownloadResult"></app-loader> |