| 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 | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 19 | <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.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 26 | <i class="fas fa-info icons list" title="info"></i> |
| 27 | </button> |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 28 | <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.m | 3b4814a | 2020-05-01 19:48:54 +0530 | [diff] [blame] | 31 | <i class="far fa-trash-alt icons" title="delete"></i> |
| 32 | </button> |
| SANDHYA.JS | 52af480 | 2025-05-22 17:00:15 +0530 | [diff] [blame] | 33 | <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] | 34 | container="body" ngbTooltip="{{'DELETE' | translate}}"> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 35 | <i class="far fa-trash-alt icons" title="delete"></i> |
| 36 | </button> |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 37 | <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.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 41 | <i class="fas fa-window-close icons" title="deregister"></i> |
| 42 | </button> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 43 | <button *ngIf="isProfile" type="button" class="btn btn-primary" placement="top" container="body" |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 44 | (click)="editProfile(getK8sType)" [disabled]="value.state !== 'READY'" |
| 45 | ngbTooltip="{{'PAGE.K8S.EDITPROFILE' | translate}}"> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 46 | <i class="fa fa-edit icons"></i> |
| 47 | </button> |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 48 | <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.JS | 52af480 | 2025-05-22 17:00:15 +0530 | [diff] [blame] | 51 | <i class="fas fa-trash-alt icons text-danger" title="delete"></i> |
| 52 | </button> |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 53 | <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.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 57 | <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.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 79 | <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.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 83 | {{'ACTION' | translate}} |
| 84 | </button> |
| 85 | <div class="dropdown-menu list-action-dropdown" ngbDropdownMenu> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 86 | <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left" |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 87 | (click)="editCluster('upgrade')" container="body" ngbTooltip="{{'Version Upgrade' | translate}}"> |
| 88 | <i class="fa fa-arrow-up"></i> {{'PAGE.K8S.VERSIONUPGRADE' | translate}} |
| SANDHYA.JS | a3ff32a | 2025-02-13 16:24:46 +0530 | [diff] [blame] | 89 | </button> |
| 90 | <button *ngIf="isCluster" type="button" class="btn btn-primary dropdown-item" placement="left" |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 91 | (click)="editCluster('update')" container="body" ngbTooltip="{{'Update Cluster' | translate}}"> |
| 92 | <i class="fas fa-arrows-alt-h"></i> {{'PAGE.K8S.UPDATECLUSTER' | translate}} |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 93 | </button> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 94 | <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] | 95 | (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.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 101 | <button type="button" class="btn btn-primary dropdown-toggle action-button" ngbDropdownToggle |
| 102 | [disabled]="value.state !== 'READY'"> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 103 | {{'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.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 108 | <i class="fas fa-truck-moving"></i> {{'PAGE.K8S.MOVE' | translate}} |
| 109 | </button> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 110 | <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="cloneKsu()" |
| 111 | container="body" ngbTooltip="{{'PAGE.K8S.CLONE' | translate}}"> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 112 | <i class="fa fa-clone icons"></i> {{'PAGE.K8S.CLONE' | translate}} |
| 113 | </button> |
| SANDHYA.JS | b772de0 | 2024-12-10 15:21:03 +0530 | [diff] [blame] | 114 | <button *ngIf="isKSU" type="button" class="btn btn-primary dropdown-item" placement="left" (click)="editKsu()" |
| 115 | container="body" ngbTooltip="{{'EDIT' | translate}}"> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 116 | <i class="fa fa-edit icons"></i> {{'EDIT' | translate}} |
| 117 | </button> |
| SANDHYA.JS | 2657011 | 2024-07-05 21:35:46 +0530 | [diff] [blame] | 118 | </div> |
| SANDHYA.JS | b534715 | 2024-10-15 11:41:45 +0530 | [diff] [blame] | 119 | </div> |
| SANDHYA.JS | 92379ec | 2025-06-13 17:29:35 +0530 | [diff] [blame^] | 120 | <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.JS | b534715 | 2024-10-15 11:41:45 +0530 | [diff] [blame] | 136 | <app-loader [waitingMessage]="message" *ngIf="isLoadingDownloadResult"></app-loader> |