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

pull/11097/head
Prabhat Khera 10 months ago committed by GitHub
parent 4c00b72ae3
commit 63c11d9310
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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 { for rule, paths := range rules {
ingress.Spec.Rules = append(ingress.Spec.Rules, netv1.IngressRule{ ingress.Spec.Rules = append(ingress.Spec.Rules, netv1.IngressRule{
Host: rule, Host: rule,

Loading…
Cancel
Save