Commit 42fb570
authored
* Add plugin.yaml as YAML alternative to plugin.config
Introduce plugin.yaml, a YAML-based configuration file for global
plugins that replaces the legacy line-based plugin.config format.
New capabilities over plugin.config:
- enabled: false to disable plugins without removing them
- load_order for explicit plugin loading priority
- NOTE-level startup log per plugin with load status
- traffic_ctl plugin list via JSONRPC for runtime introspection
- traffic_ctl config convert plugin_config for automated migration
- Fallback: plugin.yaml takes precedence; plugin.config used if absent
* Add inline config field to plugin.yaml
Add the 'config' field to plugin.yaml entries, allowing plugin
configuration to be embedded directly using a YAML block scalar (|).
The literal text is written to a temporary file at startup and passed
to the plugin as an argument. Only scalar values are accepted;
structured YAML is rejected to preserve quoting semantics that
plugins like txn_box rely on.
1 parent 7bf5877 commit 42fb570
34 files changed
Lines changed: 2024 additions & 23 deletions
File tree
- doc
- admin-guide/files
- appendices/command-line
- release-notes
- include
- config
- mgmt/rpc/handlers/plugins
- proxy
- tscore
- src
- config
- unit_tests
- mgmt/rpc/handlers/plugins
- proxy
- unit_tests
- traffic_ctl
- jsonrpc
- traffic_server
- tests/gold_tests
- pluginTest/plugin_yaml
- traffic_ctl/convert_plugin_config
- gold
- legacy_config
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
63 | 64 | | |
64 | 65 | | |
65 | 66 | | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
26 | 51 | | |
27 | 52 | | |
28 | 53 | | |
| |||
71 | 96 | | |
72 | 97 | | |
73 | 98 | | |
| 99 | + | |
74 | 100 | | |
75 | 101 | | |
76 | 102 | | |
0 commit comments