i18n>-- No service available --</option>
<option *ngIf="services !== null && services.length > 0"
[ngValue]="null"
- i18n>-- Select an existing RGW service --</option>
+ i18n>-- Select an existing service --</option>
<option *ngFor="let service of services"
[value]="service.service_name">{{ service.service_name }}</option>
</select>
readonly RGW_SVC_ID_PATTERN = /^([^.]+)(\.([^.]+)\.([^.]+))?$/;
readonly SNMP_DESTINATION_PATTERN = /^[^\:]+:[0-9]/;
readonly SNMP_ENGINE_ID_PATTERN = /^[0-9A-Fa-f]{10,64}/g;
+ readonly INGRESS_SUPPORTED_SERVICE_TYPES = ['rgw', 'nfs'];
@ViewChild(NgbTypeahead, { static: false })
typeahead: NgbTypeahead;
this.pools = resp;
});
this.cephServiceService.list().subscribe((services: CephServiceSpec[]) => {
- this.services = services.filter((service: any) => service.service_type === 'rgw');
+ this.services = services.filter((service: any) =>
+ this.INGRESS_SUPPORTED_SERVICE_TYPES.includes(service.service_type)
+ );
});
if (this.editing) {