93a003a9 by Adam Heath

Fix http-support/gatewayapi/redirect.hosts.

1 parent 5b1e8830
This diff could not be displayed because it is too large.
......@@ -2,5 +2,11 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- github.com/kubernetes-sigs/gateway-api/config/crd?ref=v0.5.0
- ./experimental-install.yaml
#- github.com/kubernetes-sigs/gateway-api/config/crd?ref=v0.5.0
#- https://github.com/kubernetes-sigs/gateway-api/releases/download/v0.5.0/experimental-install.yaml
#- https://github.com/kubernetes-sigs/gateway-api/releases/download/v0.5.0/standard-install.yaml
#
#
......
This diff could not be displayed because it is too large.
......@@ -26,7 +26,7 @@ releases:
name: http-support-redirect-{{ $redirect_index }}-{{ index $redirect.hosts 0 }}
spec:
hosts:
{{- $redirect.hosts | toYaml | nindent 18 }}
{{- $redirect.hosts | toYaml | nindent 20 }}
gateways:
- {{ $.Values.istio.gateway }}
http:
......@@ -46,7 +46,7 @@ releases:
parentRefs:
- name: {{ $.Values.gatewayAPI.gateway }}
hostnames:
{{- $redirect.hosts | toYaml | nindent 18 }}
{{- $redirect.hosts | toYaml | nindent 20 }}
rules:
- matches:
- path:
......@@ -90,7 +90,7 @@ releases:
hosts:
- {{ $proxy.frontend.host }}
gateways:
- {{ $.Values.gateway }}
- {{ $.Values.istio.gateway }}
http:
- match:
- uri:
......@@ -121,13 +121,16 @@ releases:
parentRefs:
- name: {{ $.Values.gatewayAPI.gateway }}
hostnames:
- {{- $proxy.frontend.host }}
- {{ $proxy.frontend.host }}
rules:
- matches:
- path:
type: PathPrefix
value: /
filters:
- type: URLRewrite
urlRewrite:
hostname: {{ $proxy.authority }}
- type: RequestHeaderModifier
requestHeaderModifier:
set:
......@@ -143,6 +146,9 @@ releases:
value: {{ $proxy.backend.address }}
- name: x-backend-scheme
value: {{ $proxy.backend.scheme }}
backendRefs:
- name: http-support-proxy
port: 80
{{- end }}
{{- end }}
......