mirror of
https://github.com/alibaba/higress.git
synced 2026-03-04 00:20:50 +08:00
support nil wasmplugin config in ingress-level (#852)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user