mirror of
https://github.com/alibaba/higress.git
synced 2026-02-25 21:21:01 +08:00
support empty config with custom config func (#718)
This commit is contained in:
@@ -159,8 +159,7 @@ func (ctx *CommonPluginCtx[PluginConfig]) OnPluginStart(int) types.OnPluginStart
|
||||
var jsonData gjson.Result
|
||||
if len(data) == 0 {
|
||||
if ctx.vm.hasCustomConfig {
|
||||
ctx.vm.log.Warn("need config")
|
||||
return types.OnPluginStartStatusFailed
|
||||
ctx.vm.log.Warn("config is empty, but has ParseConfigFunc")
|
||||
}
|
||||
} else {
|
||||
if !gjson.ValidBytes(data) {
|
||||
|
||||
Reference in New Issue
Block a user