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