From 9a1edcd4c8560877755a21cd4fba3b69822a8bee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BE=84=E6=BD=AD?= Date: Tue, 29 Oct 2024 20:27:11 +0800 Subject: [PATCH] Fix the issue where wasmplugin does not work when kingress exists (#1450) --- pkg/ingress/translation/translation.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkg/ingress/translation/translation.go b/pkg/ingress/translation/translation.go index 1545a1749a..bb95d57682 100644 --- a/pkg/ingress/translation/translation.go +++ b/pkg/ingress/translation/translation.go @@ -187,10 +187,9 @@ func (m *IngressTranslation) List(typ config.GroupVersionKind, namespace string) higressConfig = append(higressConfig, ingressConfig...) if m.kingressConfig != nil { kingressConfig := m.kingressConfig.List(typ, namespace) - if kingressConfig == nil { - return nil + if kingressConfig != nil { + higressConfig = append(higressConfig, kingressConfig...) } - higressConfig = append(higressConfig, kingressConfig...) } return higressConfig }