{{#if hasServiceTargets}} {{banner-message color="bg-info" icon="icon-info" message=(t 'formIngressBackends.warning' htmlSafe=true)}} {{/if}}
| {{t 'formIngressBackends.path.label'}} | {{/unless}}{{t 'formIngressBackends.target'}} | {{t 'formIngressBackends.targetPort.label'}}{{#if editing}}{{field-required}}{{/if}} | {{#if editing}}{{/if}} |
|---|---|---|---|
| {{#input-or-display editable=editing value=path.path classesForDisplay="clip"}} {{input type="text" class="input-sm" value=path.path placeholder=(t 'formIngressBackends.path.placeholder')}} {{/input-or-display}} | {{/unless}}{{#if (eq path.backendType 'service')}} {{schema/input-dns-record culsterIpNotNull=false disabled=(not editing) editing=editing obj=path.service selectClass="input-sm" selected=path.serviceId selectedNamespace=namespace }} {{else if (eq path.backendType 'workload')}} {{schema/input-workload editing=editing readOnly=(not editing) selectClass="input-sm" selected=path.serviceId selectedNamespace=namespace }} {{/if}} | {{#input-or-display editable=editing value=path.targetPort classesForDisplay="clip"}} {{#if (eq path.backendType 'service')}} {{#if path.service}} {{new-select classNames="form-control input-sm" optionValuePath="port" optionLabelPath="port" content=path.service.availablePorts value=path.targetPort prompt="formIngressBackends.targetPort.prompt" localizedPrompt=true }} {{else}} {{t 'generic.na'}} {{/if}} {{else}} {{input-integer class="input-sm" min="1" max="65535" value=path.targetPort placeholder=(t 'formIngressBackends.targetPort.placeholder')}} {{/if}} {{/input-or-display}} | {{#if editing}}{{/if}} |