@@ -836,7 +836,7 @@ func (t *Translator) translateAPIConfig(cfg *models.StoredConfig, allConfigs []*
836836 }
837837 // Reuse the referenced upstreamDefinition's cluster (built unconditionally
838838 // below) instead of minting a per-op cluster. routeURLPath carries the
839- // definition's base path (#2065) so the route's static rewrite prepends it
839+ // definition's base path so the route's static rewrite prepends it
840840 // exactly once. Keep cluster_header ON with that cluster as the default so a
841841 // dynamic-endpoint policy can still steer this operation. Precedence:
842842 // op-policy > api-policy > per-op ref > api-level upstream.
@@ -917,7 +917,7 @@ func (t *Translator) translateAPIConfig(cfg *models.StoredConfig, allConfigs []*
917917 return nil , nil , fmt .Errorf ("per-op sandbox upstream for %s %s: %w" , string (op .Method ), op .Path , err )
918918 }
919919 // Reuse the referenced upstreamDefinition's cluster; routeURLPath carries
920- // its base path (#2065) . Keep cluster_header ON so a sandbox dynamic-endpoint
920+ // its base path. Keep cluster_header ON so a sandbox dynamic-endpoint
921921 // policy can override the per-op default — consistent with the API-level
922922 // sandbox routing fixed in #2059 (no static-pin bypass).
923923 sbRouteCluster = defClusterName
@@ -990,7 +990,7 @@ func (t *Translator) translateAPIConfig(cfg *models.StoredConfig, allConfigs []*
990990// resolveUpstreamCluster validates an upstream (main or sandbox) and creates its cluster.
991991// Returns clusterName, parsedURL, timeout (can be nil), and error.
992992// The cluster name is derived from sha256(apiID|upstreamName), giving the
993- // API-level main/sandbox cluster an EDS -stable identity: URL edits update
993+ // API-level main/sandbox cluster a URL -stable identity: URL edits update
994994// endpoints in-place rather than destroying and recreating the cluster.
995995func (t * Translator ) resolveUpstreamCluster (apiID , upstreamName string , up * api.Upstream , upstreamDefinitions * []api.UpstreamDefinition ) (string , * url.URL , * resolvedTimeout , error ) {
996996 var rawURL string
@@ -1052,18 +1052,18 @@ func (t *Translator) resolveUpstreamCluster(apiID, upstreamName string, up *api.
10521052 parsedURL .Path = * refBasePath
10531053 }
10541054
1055- // Generate cluster name from EDS -stable hash (URL intentionally excluded).
1055+ // Generate cluster name from URL -stable hash (URL intentionally excluded).
10561056 clusterName := upstreamName + "_" + clusterkey .APILevel (apiID , upstreamName )
10571057
10581058 return clusterName , parsedURL , timeout , nil
10591059}
10601060
10611061// resolvePerOpDefinitionCluster resolves a ref-only per-op upstream target to the
1062- // EXISTING upstreamDefinition cluster: its EDS cluster name
1062+ // EXISTING upstreamDefinition cluster: its stable cluster name
10631063// (upstream_<kind>_<apiID>_<defName>) and base path. The definition's cluster is
10641064// created unconditionally for every definition, so a per-op route reuses it rather
10651065// than minting its own — one cluster per definition serves both vhosts (no env in
1066- // the key). The base path comes from the definition's basePath field (#2065) ; the
1066+ // the key). The base path comes from the definition's basePath field; the
10671067// caller passes it as the route's upstream path so the static rewrite prepends it.
10681068func (t * Translator ) resolvePerOpDefinitionCluster (kind , apiID string , target * api.RestAPIOperationUpstreamTarget , upstreamDefinitions * []api.UpstreamDefinition ) (string , string , * resolvedTimeout , error ) {
10691069 refName := strings .TrimSpace (target .Ref )
0 commit comments