Commit b897565
Add a standalone option for additional-config-params
Summary:
Adds a new `--additional-config-params` CLI option for standalone mcrouter. This option accepts the same `name:value,name:value` format as `--config-params`, but is merged into `config_params` *after* the normal config params have been resolved from flavors and command-line overrides. On key conflicts, the additional params take precedence.
This is useful for workflows that need to inject extra config params without replacing the ones already set via `--config-params` or flavors — for example, overriding a single param in a wrapper script while preserving the rest.
The parsing applies `substituteTemplates` for template variable expansion, validates that each pair has a non-empty key and a colon separator, and gracefully handles trailing or consecutive commas.
Reviewed By: lenar-f
Differential Revision: D93257027
fbshipit-source-id: ad844594cb1357b0b1d3d4d231614fdb4aa02dd91 parent 828ca3d commit b897565
2 files changed
Lines changed: 40 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| 31 | + | |
30 | 32 | | |
31 | 33 | | |
32 | 34 | | |
| |||
105 | 107 | | |
106 | 108 | | |
107 | 109 | | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
108 | 114 | | |
109 | 115 | | |
110 | 116 | | |
| |||
246 | 252 | | |
247 | 253 | | |
248 | 254 | | |
| 255 | + | |
249 | 256 | | |
250 | 257 | | |
251 | 258 | | |
| |||
379 | 386 | | |
380 | 387 | | |
381 | 388 | | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
382 | 393 | | |
383 | 394 | | |
384 | 395 | | |
| |||
459 | 470 | | |
460 | 471 | | |
461 | 472 | | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
462 | 498 | | |
463 | 499 | | |
464 | 500 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
82 | 86 | | |
83 | 87 | | |
84 | 88 | | |
| |||
0 commit comments