From 225fd5d9d4c62e7b40b01399d1b8ee271821c916 Mon Sep 17 00:00:00 2001 From: Peter Nose Date: Sat, 11 Jan 2025 02:47:41 +0100 Subject: [PATCH] go/runtime/config: Improve registries field comment --- go/runtime/config/config.go | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/go/runtime/config/config.go b/go/runtime/config/config.go index c67f53f9b69..2a7d029e805 100644 --- a/go/runtime/config/config.go +++ b/go/runtime/config/config.go @@ -131,7 +131,11 @@ type Config struct { // LoadBalancer is the load balancer configuration. LoadBalancer LoadBalancerConfig `yaml:"load_balancer,omitempty"` - // Registries is the list of URLs used to fetch runtime bundle metadata. + // Registries is the list of base URLs used to fetch runtime bundle metadata. + // + // The actual metadata URLs are constructed by appending the manifest hash + // to the base URL. Therefore, the provided URLs don't need to be valid + // endpoints themselves, only the constructed URLs need to be valid. Registries []string `yaml:"registries,omitempty"` // MaxBundleSize is the maximum allowed bundle size. @@ -187,7 +191,11 @@ type RuntimeConfig struct { // Config contains runtime local configuration. Config map[string]interface{} `yaml:"config,omitempty"` - // Registries is the list of URLs used to fetch runtime bundle metadata. + // Registries is the list of base URLs used to fetch runtime bundle metadata. + // + // The actual metadata URLs are constructed by appending the manifest hash + // to the base URL. Therefore, the provided URLs don't need to be valid + // endpoints themselves, only the constructed URLs need to be valid. Registries []string `yaml:"registries,omitempty"` }