You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[refactor] Unify sidecar Config and Options (llm-d#751)
* sidecar: embed Config in Options, move port and target URL into Config
Config now holds the complete runtime configuration including port,
target URL, SSRF fields, and renamed TLS fields. Options embeds Config
so Complete() populates it directly. NewProxy takes a single Config.
Start constructs AllowlistValidator from config internally. main.go no
longer builds Config manually or calls NewAllowlistValidator directly.
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* sidecar: update tests for new NewProxy and Start signatures
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* config: add String via MarshalJSON
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* simplify code
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* Port and URL are already in Options, removed from Server
- Removed port and decoderURL fields from Server struct (they duplicated config.Port and config.TargetURL)
- Removed the two lines in NewProxy (L186-187) that initialized them
- Removed them from Clone() as well — the config copy already carries the values
- Replaced all s.port / s.decoderURL / clone.port / clone.decoderURL references with s.config.Port / s.config.TargetURL across proxy.go,
proxy_helpers.go, data_parallel.go, connector_sglang.go, connector_nixlv2.go, and the test file
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* change TargetURL to DecodeURL; make Options fields private
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
* fix race in sidecar, reorder imports in test file
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
---------
Signed-off-by: Etai Lev Ran <elevran@gmail.com>
0 commit comments