Skip to content

Commit

Permalink
Change virtual host map name to prefix with kube_dynamic/
Browse files Browse the repository at this point in the history
  • Loading branch information
ffilippopoulos committed Jan 16, 2025
1 parent 40e007c commit 0ec8c96
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xds/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -284,6 +284,7 @@ func servicesToResourcesWithNames(serviceStore XdsServiceStore, authority string
for _, s := range serviceStore.All() {
for _, port := range s.Service.Spec.Ports {
vh := makeVirtualHost(s.Service.Name, s.Service.Namespace, authority, port.Port, s.Retry, s.RingHashPolicies)
vh.Name = fmt.Sprintf("kube_dynamic/%s", vh.Name) // patch virtual host name to prefix with kube_dynamic as requests will be expected based on route config name
vhds[vh.Name] = vh
cluster := makeCluster(s.Service.Name, s.Service.Namespace, authority, port.Port, s.Policy, s.RingHash)
cls[cluster.Name] = patchClusterDeltaEDS(cluster)
Expand Down

0 comments on commit 0ec8c96

Please sign in to comment.