File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
charts/ai-gateway-core/templates Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1414 - type : " type.googleapis.com/envoy.config.route.v3.RouteConfiguration"
1515 name : " {{ .Values.namespace | default .Release.Namespace }}/{{ .Values.gateway.name }}/http"
1616 operation :
17- # Patching the responseCode to 308 (PERMANENT_REDIRECT)
18- # We target the first virtual host and first route since it's the redirect route
19- op : replace
20- path : /virtualHosts/0/routes/0/redirect/responseCode
17+ # Patching indices 1 and 2 which correspond to our actual domains
18+ # Index 0 is a wildcard host that doesn't have a redirect
19+ op : add
20+ path : /virtual_hosts/1/routes/0/redirect/response_code
21+ value : " PERMANENT_REDIRECT"
22+ - type : " type.googleapis.com/envoy.config.route.v3.RouteConfiguration"
23+ name : " {{ .Values.namespace | default .Release.Namespace }}/{{ .Values.gateway.name }}/http"
24+ operation :
25+ op : add
26+ path : /virtual_hosts/2/routes/0/redirect/response_code
2127 value : " PERMANENT_REDIRECT"
2228{{- end }}
You can’t perform that action at this time.
0 commit comments