Fix the issue where wasmplugin does not work when kingress exists (#1450)

This commit is contained in:
澄潭
2024-10-29 20:27:11 +08:00
committed by GitHub
parent 2219a17898
commit 9a1edcd4c8

View File

@@ -187,11 +187,10 @@ func (m *IngressTranslation) List(typ config.GroupVersionKind, namespace string)
higressConfig = append(higressConfig, ingressConfig...) higressConfig = append(higressConfig, ingressConfig...)
if m.kingressConfig != nil { if m.kingressConfig != nil {
kingressConfig := m.kingressConfig.List(typ, namespace) kingressConfig := m.kingressConfig.List(typ, namespace)
if kingressConfig == nil { if kingressConfig != nil {
return nil
}
higressConfig = append(higressConfig, kingressConfig...) higressConfig = append(higressConfig, kingressConfig...)
} }
}
return higressConfig return higressConfig
} }