Commit b35e0f9
fix: populate global_rules and plugin_metadata in ADC validate payload
buildAPISIXValidatePayload now includes GlobalRules (as a single
GlobalRuleItem with generated ID) and PluginMetadata (per plugin name)
in the validation request, ensuring APISIX validates the full config
context rather than silently omitting these resources.
Note: double ingress-class resolution in buildTask is retained to
preserve the early-exit behavior (configs empty = no ADC server
configured = skip validation). A proper single-resolution refactoring
would require changes to PrepareApisixRouteForValidation signatures.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 4789243 commit b35e0f9
1 file changed
Lines changed: 21 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
406 | 427 | | |
407 | 428 | | |
408 | 429 | | |
| |||
0 commit comments