|
15 | 15 | (click)="createMultisiteSetup()"> |
16 | 16 | Click here</a> to create a new Realm/Zone Group/Zone |
17 | 17 | </cd-alert-panel> |
| 18 | + |
18 | 19 | <!-- Service type --> |
19 | 20 | <div class="form-group row"> |
20 | 21 | <label class="cd-col-form-label required" |
|
25 | 26 | name="service_type" |
26 | 27 | class="form-select" |
27 | 28 | formControlName="service_type" |
28 | | - (change)="getServiceIds($event.target.value)"> |
| 29 | + (change)="onServiceTypeChange($event.target.value)"> |
29 | 30 | <option i18n |
30 | 31 | [ngValue]="null">-- Select a service type --</option> |
31 | 32 | <option *ngFor="let serviceType of serviceTypes" |
|
40 | 41 | </div> |
41 | 42 |
|
42 | 43 | <!-- backend_service --> |
43 | | - <div *ngIf="serviceForm.controls.service_type.value === 'ingress'" |
44 | | - class="form-group row"> |
45 | | - <label i18n |
46 | | - class="cd-col-form-label" |
47 | | - [ngClass]="{'required': ['ingress'].includes(serviceForm.controls.service_type.value)}" |
48 | | - for="backend_service">Backend Service</label> |
49 | | - <div class="cd-col-form-input"> |
50 | | - <select id="backend_service" |
51 | | - name="backend_service" |
52 | | - class="form-select" |
53 | | - formControlName="backend_service" |
54 | | - (change)="prePopulateId()"> |
55 | | - <option *ngIf="services === null" |
56 | | - [ngValue]="null" |
57 | | - i18n>Loading...</option> |
58 | | - <option *ngIf="services !== null && services.length === 0" |
59 | | - [ngValue]="null" |
60 | | - i18n>-- No service available --</option> |
61 | | - <option *ngIf="services !== null && services.length > 0" |
62 | | - [ngValue]="null" |
63 | | - i18n>-- Select an existing service --</option> |
64 | | - <option *ngFor="let service of services" |
65 | | - [value]="service.service_name">{{ service.service_name }}</option> |
66 | | - </select> |
67 | | - <span class="invalid-feedback" |
68 | | - *ngIf="serviceForm.showError('backend_service', frm, 'required')" |
69 | | - i18n>This field is required.</span> |
70 | | - </div> |
| 44 | + <div *ngIf="serviceForm.controls.service_type.value === 'ingress'" |
| 45 | + class="form-group row"> |
| 46 | + <label i18n |
| 47 | + class="cd-col-form-label" |
| 48 | + [ngClass]="{'required': ['ingress'].includes(serviceForm.controls.service_type.value)}" |
| 49 | + for="backend_service">Backend Service</label> |
| 50 | + <div class="cd-col-form-input"> |
| 51 | + <select id="backend_service" |
| 52 | + name="backend_service" |
| 53 | + class="form-select" |
| 54 | + formControlName="backend_service" |
| 55 | + (change)="prePopulateId()"> |
| 56 | + <option *ngIf="services === null" |
| 57 | + [ngValue]="null" |
| 58 | + i18n>Loading...</option> |
| 59 | + <option *ngIf="services !== null && services.length === 0" |
| 60 | + [ngValue]="null" |
| 61 | + i18n>-- No service available --</option> |
| 62 | + <option *ngIf="services !== null && services.length > 0" |
| 63 | + [ngValue]="null" |
| 64 | + i18n>-- Select an existing service --</option> |
| 65 | + <option *ngFor="let service of services" |
| 66 | + [value]="service.service_name">{{ service.service_name }}</option> |
| 67 | + </select> |
| 68 | + <span class="invalid-feedback" |
| 69 | + *ngIf="serviceForm.showError('backend_service', frm, 'required')" |
| 70 | + i18n>This field is required.</span> |
71 | 71 | </div> |
| 72 | + </div> |
| 73 | + |
| 74 | + <!-- NVMe/TCP --> |
| 75 | + <!-- Block Pool --> |
| 76 | + <div class="form-group row" |
| 77 | + *ngIf="serviceForm.controls.service_type.value === 'nvmeof'"> |
| 78 | + <label i18n |
| 79 | + class="cd-col-form-label required" |
| 80 | + for="pool">Block Pool</label> |
| 81 | + <div class="cd-col-form-input"> |
| 82 | + <select id="pool" |
| 83 | + name="pool" |
| 84 | + class="form-select" |
| 85 | + formControlName="pool" |
| 86 | + (change)="onBlockPoolChange()"> |
| 87 | + <option *ngIf="rbdPools === null" |
| 88 | + [ngValue]="null" |
| 89 | + i18n>Loading...</option> |
| 90 | + <option *ngIf="rbdPools && rbdPools.length === 0" |
| 91 | + [ngValue]="null" |
| 92 | + i18n>-- No block pools available --</option> |
| 93 | + <option *ngIf="rbdPools && rbdPools.length > 0" |
| 94 | + [ngValue]="null" |
| 95 | + i18n>-- Select a pool --</option> |
| 96 | + <option *ngFor="let pool of rbdPools" |
| 97 | + [value]="pool.pool_name">{{ pool.pool_name }}</option> |
| 98 | + </select> |
| 99 | + <cd-help-text i18n> |
| 100 | + A pool in which the gateway configuration can be managed. |
| 101 | + </cd-help-text> |
| 102 | + <span class="invalid-feedback" |
| 103 | + *ngIf="serviceForm.showError('pool', frm, 'required')" |
| 104 | + i18n>This field is required.</span> |
| 105 | + </div> |
| 106 | + </div> |
72 | 107 |
|
73 | 108 | <!-- Service id --> |
74 | 109 | <div class="form-group row" |
75 | 110 | *ngIf="serviceForm.controls.service_type.value !== 'snmp-gateway'"> |
76 | 111 | <label class="cd-col-form-label" |
77 | | - [ngClass]="{'required': ['mds', 'rgw', 'nfs', 'iscsi', 'smb', 'ingress'].includes(serviceForm.controls.service_type.value)}" |
| 112 | + [ngClass]="{'required': ['mds', 'rgw', 'nfs', 'iscsi', 'nvmeof', 'smb', 'ingress'].includes(serviceForm.controls.service_type.value)}" |
78 | 113 | for="service_id"> |
79 | | - <span i18n>Id</span> |
80 | | - <cd-helper i18n>Used in the service name which is <service_type.service_id></cd-helper> |
| 114 | + <span i18n>Service Name</span> |
81 | 115 | </label> |
82 | 116 | <div class="cd-col-form-input"> |
83 | | - <input id="service_id" |
84 | | - class="form-control" |
85 | | - type="text" |
86 | | - formControlName="service_id"> |
| 117 | + <div class="input-group"> |
| 118 | + <span class="input-group-text" |
| 119 | + *ngIf="serviceForm.controls.service_type.value && ['mds', 'rgw', 'nfs', 'iscsi', 'nvmeof', 'smb', 'ingress'].includes(serviceForm.controls.service_type.value)" |
| 120 | + for="userId" |
| 121 | + i18n>{{serviceForm.controls.service_type.value}}. |
| 122 | + </span> |
| 123 | + <input id="service_id" |
| 124 | + class="form-control" |
| 125 | + type="text" |
| 126 | + formControlName="service_id"> |
| 127 | + </div> |
87 | 128 | <span class="invalid-feedback" |
88 | 129 | *ngIf="serviceForm.showError('service_id', frm, 'required')" |
89 | 130 | i18n>This field is required.</span> |
|
164 | 205 | id="unmanaged" |
165 | 206 | type="checkbox" |
166 | 207 | formControlName="unmanaged"> |
167 | | - <label class="custom-control-label" |
| 208 | + <label class="custom-control-label m-0" |
168 | 209 | for="unmanaged" |
169 | 210 | i18n>Unmanaged</label> |
170 | | - <cd-helper i18n>If set to true, the orchestrator will not start nor stop any daemon associated with this service. |
171 | | - Placement and all other properties will be ignored.</cd-helper> |
| 211 | + <cd-help-text i18n>If Unmanaged is selected, the orchestrator will not stop or stop any daemons associated with this service. Placement and all other properties will be ignored.</cd-help-text> |
172 | 212 | </div> |
173 | 213 | </div> |
174 | 214 | </div> |
|
226 | 266 | </div> |
227 | 267 | </div> |
228 | 268 |
|
229 | | - <!-- count --> |
| 269 | + <!-- Count --> |
230 | 270 | <div *ngIf="!serviceForm.controls.unmanaged.value" |
231 | 271 | class="form-group row"> |
232 | 272 | <label class="cd-col-form-label" |
233 | 273 | for="count"> |
234 | 274 | <span i18n>Count</span> |
235 | | - <cd-helper i18n>Only that number of daemons will be created.</cd-helper> |
236 | 275 | </label> |
237 | 276 | <div class="cd-col-form-input"> |
238 | 277 | <input id="count" |
239 | 278 | class="form-control" |
240 | 279 | type="number" |
241 | 280 | formControlName="count" |
242 | 281 | min="1"> |
| 282 | + <cd-help-text i18n>Number of deamons that will be deployed</cd-help-text> |
243 | 283 | <span class="invalid-feedback" |
244 | 284 | *ngIf="serviceForm.showError('count', frm, 'min')" |
245 | 285 | i18n>The value must be at least 1.</span> |
|
0 commit comments