From 63c11d931025256973f91a52382edfaaf649ccbd Mon Sep 17 00:00:00 2001 From: Prabhat Khera <91852476+prabhat-org@users.noreply.github.com> Date: Fri, 9 Feb 2024 07:49:48 +1300 Subject: [PATCH] fix(kube): ingress path duplication issue [EE-6649] (#11086) --- api/kubernetes/cli/ingress.go | 1 + 1 file changed, 1 insertion(+) diff --git a/api/kubernetes/cli/ingress.go b/api/kubernetes/cli/ingress.go index 54486781c..d32877906 100644 --- a/api/kubernetes/cli/ingress.go +++ b/api/kubernetes/cli/ingress.go @@ -281,6 +281,7 @@ func (kcl *KubeClient) UpdateIngress(namespace string, info models.K8sIngressInf }) } + ingress.Spec.Rules = make([]netv1.IngressRule, 0) for rule, paths := range rules { ingress.Spec.Rules = append(ingress.Spec.Rules, netv1.IngressRule{ Host: rule,