mirror of
https://github.com/siderolabs/omni.git
synced 2026-01-25 12:51:30 +01:00
SideroLink API URL generation had a special case compared to other services: it used the `grpc://` scheme when it as insecure, not `http://`. This special case was accidentally removed in the config schema implementation in https://github.com/siderolabs/omni/pull/2150. Bring back the logic and add unit tests for it. Additionally, add a validation for the Kuberentes proxy advertised URL in the config schema to validate that it always uses https:// scheme. Signed-off-by: Utku Ozdemir <utku.ozdemir@siderolabs.com>