siderolabs / omni

SaaS-simple deployment of Kubernetes - on your own hardware.
Other
395 stars 24 forks source link

fix: detect the old vs. new URL format correctly on workload proxying #414

Closed utkuozdemir closed 3 days ago

utkuozdemir commented 3 days ago

Requests targeting workload proxies were incorrectly detected to be in the old URL format with the p- prefix when the instance name had a dash (-) in it.

Fix it by checking explicitly for the p- prefix in the logic.

Add a test to cover this case.

utkuozdemir commented 3 days ago

/m