Skip to content

Commit

Permalink
support nil wasmplugin config in ingress-level (alibaba#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
johnlanni authored and Renz7 committed Mar 4, 2024
1 parent 75d35d1 commit 0733993
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/ingress/config/ingress_config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0733993

Please sign in to comment.