sigs.k8s.io/gateway-api@v1.0.0/conformance/tests/httproute-redirect-path.yaml (about) 1 apiVersion: gateway.networking.k8s.io/v1 2 kind: HTTPRoute 3 metadata: 4 name: redirect-path 5 namespace: gateway-conformance-infra 6 spec: 7 parentRefs: 8 - name: same-namespace 9 rules: 10 - matches: 11 - path: 12 type: PathPrefix 13 value: /original-prefix 14 filters: 15 - type: RequestRedirect 16 requestRedirect: 17 path: 18 type: ReplacePrefixMatch 19 replacePrefixMatch: /replacement-prefix 20 - matches: 21 - path: 22 type: PathPrefix 23 value: /full 24 filters: 25 - type: RequestRedirect 26 requestRedirect: 27 path: 28 type: ReplaceFullPath 29 replaceFullPath: /full-path-replacement 30 - matches: 31 - path: 32 type: PathPrefix 33 value: /path-and-host 34 filters: 35 - type: RequestRedirect 36 requestRedirect: 37 hostname: example.org 38 path: 39 type: ReplacePrefixMatch 40 replacePrefixMatch: /replacement-prefix 41 - matches: 42 - path: 43 type: PathPrefix 44 value: /path-and-status 45 filters: 46 - type: RequestRedirect 47 requestRedirect: 48 path: 49 type: ReplacePrefixMatch 50 replacePrefixMatch: /replacement-prefix 51 statusCode: 301 52 - matches: 53 - path: 54 type: PathPrefix 55 value: /full-path-and-host 56 filters: 57 - type: RequestRedirect 58 requestRedirect: 59 hostname: example.org 60 path: 61 type: ReplaceFullPath 62 replaceFullPath: /replacement-full 63 - matches: 64 - path: 65 type: PathPrefix 66 value: /full-path-and-status 67 filters: 68 - type: RequestRedirect 69 requestRedirect: 70 path: 71 type: ReplaceFullPath 72 replaceFullPath: /replacement-full 73 statusCode: 301