2022-01-17 05:53:32 +00:00
< div class = "col-sm-12 form-section-title" > Publishing the application < / div >
2022-01-16 19:37:46 +00:00
< div class = "form-group" >
< div class = "col-sm-12 form-inline" >
2022-01-17 05:53:32 +00:00
< div class = "col-sm-5" style = "padding-left: 0px" >
2022-01-16 19:37:46 +00:00
< select class = "form-control" ng-model = "$ctrl.state.selected" ng-options = "item.typeValue as item.typeName for item in $ctrl.state.serviceType" > < / select >
2022-01-17 05:53:32 +00:00
< button type = "button" class = "btn btn-sm btn-default" style = "margin-left: 0" ng-click = "$ctrl.addEntry( $ctrl.state.selected )" data-cy = "k8sConfigCreate-createEntryButton" >
2022-01-16 19:37:46 +00:00
< i class = "fa fa-plus-circle" aria-hidden = "true" > < / i > Create service
< / button >
< / div >
< / div >
< / div >
< div class = "form-group" >
2022-01-17 05:53:32 +00:00
< div class = "col-sm-12 form-inline" style = "margin-top: 20px" ng-repeat = "service in $ctrl.formValues.Services" >
2022-01-16 19:37:46 +00:00
< div ng-if = "!$ctrl.formValues.Services[$index].Ingress" >
< div class = "text-muted" >
2022-01-17 05:53:32 +00:00
< i class = "{{ $ctrl.iconStyle(service.Type) }}" aria-hidden = "true" style = "margin-right: 2px" > < / i >
2022-01-16 19:37:46 +00:00
{{ $ctrl.serviceType(service.Type) }}
< / div >
< kube-services-item-view
service-routes="$ctrl.formValues.Services[$index].IngressRoute"
ingress-type="$ctrl.formValues.Services[$index].Ingress"
service-type="$ctrl.formValues.Services[$index].Type"
service-ports="$ctrl.formValues.Services[$index].Ports"
is-edit="$ctrl.isEdit"
loadbalancer-enabled="$ctrl.loadbalancerEnabled"
>< / kube-services-item-view >
< button
type="button"
class="btn btn-sm btn-danger space-right"
2022-01-17 05:53:32 +00:00
style="margin-left: 0; margin-top: 10px"
2022-01-16 19:37:46 +00:00
ng-click="$ctrl.deleteService( $index )"
data-cy="k8sConfigCreate-removeButton"
>
< i class = "fa fa-trash-alt" aria-hidden = "true" > < / i > Remove
< / button >
< / div >
< div ng-if = "$ctrl.formValues.Services[$index].Ingress && $ctrl.formValues.OriginalIngresses.length === 0" >
< div class = "text-muted" >
2022-01-17 05:53:32 +00:00
< i class = "fa fa-route" aria-hidden = "true" style = "margin-right: 2px" > < / i >
2022-01-16 19:37:46 +00:00
Ingress
< / div >
< div ng-if = "$ctrl.isAdmin()" class = "small text-warning" >
2022-01-17 05:53:32 +00:00
< p style = "margin-top: 10px" >
2022-01-16 19:37:46 +00:00
< i class = "fa fa-exclamation-circle" aria-hidden = "true" > < / i > Ingress is not configured in this namespace, select another namespace or click
< a ui-sref = "portainer.k8sendpoint.kubernetesConfig({id: $ctrl.state.endpointId})" > here< / a > to configure ingress.
< / p >
< / div >
< div ng-if = "!$ctrl.isAdmin()" class = "small text-warning" >
2022-01-17 05:53:32 +00:00
< p style = "margin-top: 10px" >
2022-01-16 19:37:46 +00:00
< i class = "fa fa-exclamation-circle" aria-hidden = "true" > < / i > Ingress is not configured in this namespace, select another namespace or contact your administrator.
< / p >
< / div >
< button
type="button"
class="btn btn-sm btn-danger space-right"
2022-01-17 05:53:32 +00:00
style="margin-left: 0; margin-top: 10px"
2022-01-16 19:37:46 +00:00
ng-click="$ctrl.deleteService( $index )"
data-cy="k8sConfigCreate-removeButton"
>
< i class = "fa fa-trash-alt" aria-hidden = "true" > < / i > Remove
< / button >
< / div >
< div ng-if = "$ctrl.formValues.Services[$index].Ingress && $ctrl.formValues.OriginalIngresses.length !== 0" >
< div class = "text-muted" >
2022-01-17 05:53:32 +00:00
< i class = "fa fa-route" aria-hidden = "true" style = "margin-right: 2px" > < / i >
2022-01-16 19:37:46 +00:00
Ingress
< / div >
< kube-services-item-view
original-ingresses="$ctrl.formValues.OriginalIngresses"
service-routes="$ctrl.formValues.Services[$index].IngressRoute"
ingress-type="$ctrl.formValues.Services[$index].Ingress"
service-type="$ctrl.formValues.Services[$index].Type"
service-ports="$ctrl.formValues.Services[$index].Ports"
service-name="$ctrl.formValues.Services[$index].Name"
multi-item-disable="true"
>< / kube-services-item-view >
< button
type="button"
class="btn btn-sm btn-danger space-right"
2022-01-17 05:53:32 +00:00
style="margin-left: 0; margin-top: 10px"
2022-01-16 19:37:46 +00:00
ng-click="$ctrl.deleteService( $index )"
data-cy="k8sConfigCreate-removeButton"
>
< i class = "fa fa-trash-alt" aria-hidden = "true" > < / i > Remove
< / button >
< / div >
< / div >
< / div >