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,