support nil wasmplugin config in ingress-level (#852)

This commit is contained in:
澄潭
2024-03-01 15:25:57 +08:00
committed by GitHub
parent 9c112a03db
commit 7d4ab04030

View File

@@ -819,7 +819,9 @@ func (m *IngressConfig) convertIstioWasmPlugin(obj *higressext.WasmPlugin) (*ext
continue
}
if rule.Config == nil {
return nil, errors.New("invalid rule has no config")
rule.Config = &types.Struct{
Fields: map[string]*types.Value{},
}
}
v := &types.Value_StructValue{
StructValue: rule.Config,