From fe7dfba88654ca6fe7dfef19bfa66fef1fb0a1fa Mon Sep 17 00:00:00 2001 From: Prabhat Khera Date: Mon, 19 Jun 2023 10:28:02 +1200 Subject: [PATCH] remove path from ingress host when added --- .../CreateIngressView/CreateIngressView.tsx | 19 ++----------------- 1 file changed, 2 insertions(+), 17 deletions(-) diff --git a/app/react/kubernetes/ingresses/CreateIngressView/CreateIngressView.tsx b/app/react/kubernetes/ingresses/CreateIngressView/CreateIngressView.tsx index 1edee571c..dce9959f6 100644 --- a/app/react/kubernetes/ingresses/CreateIngressView/CreateIngressView.tsx +++ b/app/react/kubernetes/ingresses/CreateIngressView/CreateIngressView.tsx @@ -597,18 +597,11 @@ export function CreateIngressView() { const newKey = `${namespace}-ingress-${ (ruleCounterByNamespace[namespace] || 0) + 1 }`; - const path: Path = { - Key: uuidv4(), - ServiceName: '', - ServicePort: 0, - Route: '', - PathType: 'Prefix', - }; const host: Host = { Host: '', Secret: '', - Paths: [path], + Paths: [], Key: uuidv4(), }; @@ -626,18 +619,10 @@ export function CreateIngressView() { function addNewIngressHost(noHost = false) { const rule = { ...ingressRule }; - const path: Path = { - ServiceName: '', - ServicePort: 0, - Route: '', - PathType: 'Prefix', - Key: uuidv4(), - }; - const host: Host = { Host: '', Secret: '', - Paths: [path], + Paths: [], NoHost: noHost, Key: uuidv4(), };