fix(kube): ingress path duplication issue [EE-6649] (#11087)

pull/11098/head
Prabhat Khera 2024-02-09 07:49:57 +13:00 committed by GitHub
parent f6085ffad7
commit 1c5458f0d4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -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,