From 315c1c7e1e6216114d3b85e421f1fee9e911f682 Mon Sep 17 00:00:00 2001 From: Ali <83188384+testA113@users.noreply.github.com> Date: Fri, 7 Oct 2022 16:55:11 +1300 Subject: [PATCH] fix(application): edit cluster ip services EE-4328 (#7775) --- .../kube-services-item.controller.js | 2 +- .../kube-services-item.html | 77 +----------- .../kube-services/kube-services.html | 2 +- app/kubernetes/helpers/application/index.js | 14 ++- .../CreateIngressView/CreateIngressView.tsx | 52 ++++++-- .../CreateIngressView/IngressForm.tsx | 6 +- .../create/createApplicationController.js | 114 +++++++++++++++++- .../services/modal.service/prompt.ts | 30 +++++ package.json | 2 +- yarn.lock | 8 +- 10 files changed, 200 insertions(+), 107 deletions(-) diff --git a/app/kubernetes/components/kube-services/kube-services-item/kube-services-item.controller.js b/app/kubernetes/components/kube-services/kube-services-item/kube-services-item.controller.js index f81d0a57a..3c4ddf1be 100644 --- a/app/kubernetes/components/kube-services/kube-services-item/kube-services-item.controller.js +++ b/app/kubernetes/components/kube-services/kube-services-item/kube-services-item.controller.js @@ -23,7 +23,7 @@ export default class KubeServicesItemViewController { const route = new KubernetesIngressServiceRoute(); route.ServiceName = this.serviceName; - if (this.serviceType === KubernetesApplicationPublishingTypes.CLUSTER_IP && this.originalIngresses.length > 0) { + if (this.serviceType === KubernetesApplicationPublishingTypes.CLUSTER_IP && this.originalIngresses && this.originalIngresses.length > 0) { if (!route.IngressName) { route.IngressName = this.originalIngresses[0].Name; } diff --git a/app/kubernetes/components/kube-services/kube-services-item/kube-services-item.html b/app/kubernetes/components/kube-services/kube-services-item/kube-services-item.html index e5c125e56..5d3d3e52e 100644 --- a/app/kubernetes/components/kube-services/kube-services-item/kube-services-item.html +++ b/app/kubernetes/components/kube-services/kube-services-item/kube-services-item.html @@ -154,82 +154,7 @@ -
-
- Ingress - -
- -
-
-

Ingress selection is required.

-
-
-
-
- -
-
- Hostname - -
- -
-
-

Hostname is required.

-
-
-
-
- -
-
- Route - -
- -
-
-

Route is required.

-

This field must consist of alphanumeric characters or the special characters: '-', '_' - or '/'. It must start and end with an alphanumeric character (e.g. 'my-route', or 'route-123').

-
-
-
-
- -
+