Skip to content

Commit e3210aa

Browse files
committed
Resolved @skriss 10-11-22 Feedback
Signed-off-by: danehans <[email protected]>
1 parent 4b114ed commit e3210aa

11 files changed

+26
-45
lines changed

internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-add-multiple-filters.out.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@ httpRoutes:
7171
conditions:
7272
- type: Accepted
7373
status: "True"
74-
reason: UnsupportedValue
75-
message: "RequestHeaderModifier Filter already configures request header: add-header-1 to be added, ignoring second entry"
74+
reason: Accepted
75+
message: Route is accepted
7676
xdsIR:
7777
envoy-gateway-gateway-1:
7878
http:

internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-adds.out.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,8 @@ httpRoutes:
8181
conditions:
8282
- type: Accepted
8383
status: "True"
84-
reason: UnsupportedValue
85-
# Currently only one invalid value status will be set. If there are multiple, then only the latest is displayed until that issue is resolved.
86-
message: "RequestHeaderModifier Filter already configures request header: set-header-4 to be added/set, ignoring second entry"
84+
reason: Accepted
85+
message: Route is accepted
8786
xdsIR:
8887
envoy-gateway-gateway-1:
8988
http:

internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-remove-multiple-filters.out.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ httpRoutes:
6767
conditions:
6868
- type: Accepted
6969
status: "True"
70-
reason: UnsupportedValue
71-
message: "RequestHeaderModifier Filter already configures request header: rem-header-1 to be removed, ignoring second entry"
70+
reason: Accepted
71+
message: Route is accepted
7272
xdsIR:
7373
envoy-gateway-gateway-1:
7474
http:

internal/gatewayapi/testdata/httproute-with-header-filter-duplicate-removes.out.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ httpRoutes:
6262
conditions:
6363
- type: Accepted
6464
status: "True"
65-
reason: UnsupportedValue
66-
message: "RequestHeaderModifier Filter already configures request header: some-header-1 to be removed, ignoring second entry"
65+
reason: Accepted
66+
message: Route is accepted
6767
xdsIR:
6868
envoy-gateway-gateway-1:
6969
http:

internal/gatewayapi/testdata/httproute-with-header-filter-empty-headers.out.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ httpRoutes:
6666
controllerName: gateway.envoyproxy.io/gatewayclass-controller
6767
conditions:
6868
- type: Accepted
69-
status: "False"
70-
reason: UnsupportedValue
71-
message: "RequestHeaderModifier Filter cannot set a header with an empty name"
69+
status: "True"
70+
reason: Accepted
71+
message: Route is accepted
7272
xdsIR:
7373
envoy-gateway-gateway-1:
7474
http:

internal/gatewayapi/testdata/httproute-with-header-filter-invalid-headers.out.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ httpRoutes:
6666
controllerName: gateway.envoyproxy.io/gatewayclass-controller
6767
conditions:
6868
- type: Accepted
69-
status: "False"
70-
reason: UnsupportedValue
71-
message: "RequestHeaderModifier Filter cannot set headers with a '/' or ':' character in them. Header: 'example:1'"
69+
status: "True"
70+
reason: Accepted
71+
message: Route is accepted
7272
xdsIR:
7373
envoy-gateway-gateway-1:
7474
http:

internal/gatewayapi/testdata/httproute-with-header-filter-no-valid-headers.out.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ httpRoutes:
6161
controllerName: gateway.envoyproxy.io/gatewayclass-controller
6262
conditions:
6363
- type: Accepted
64-
status: "False"
65-
reason: UnsupportedValue
66-
message: "RequestHeaderModifier Filter did not provide valid configuration to add/set/remove any headers"
64+
status: "True"
65+
reason: Accepted
66+
message: Route is accepted
6767
xdsIR:
6868
envoy-gateway-gateway-1:
6969
http:

internal/gatewayapi/testdata/httproute-with-redirect-filter-invalid-filter-type.out.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ httpRoutes:
6060
controllerName: gateway.envoyproxy.io/gatewayclass-controller
6161
conditions:
6262
- type: Accepted
63-
status: "False"
64-
reason: UnsupportedValue
65-
message: "Unknown custom filter type: UnsupportedType"
63+
status: "True"
64+
reason: Accepted
65+
message: Route is accepted
6666
xdsIR:
6767
envoy-gateway-gateway-1:
6868
http:

internal/gatewayapi/testdata/httproute-with-redirect-filter-invalid-scheme.out.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ httpRoutes:
6060
controllerName: gateway.envoyproxy.io/gatewayclass-controller
6161
conditions:
6262
- type: Accepted
63-
status: "False"
64-
reason: UnsupportedValue
65-
message: "Scheme: unknown is unsupported, only 'https' and 'http' are supported"
63+
status: "True"
64+
reason: Accepted
65+
message: Route is accepted
6666
xdsIR:
6767
envoy-gateway-gateway-1:
6868
http:

internal/gatewayapi/testdata/httproute-with-redirect-filter-invalid-status.out.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,9 +60,9 @@ httpRoutes:
6060
controllerName: gateway.envoyproxy.io/gatewayclass-controller
6161
conditions:
6262
- type: Accepted
63-
status: "False"
64-
reason: UnsupportedValue
65-
message: "Status code 666 is invalid, only 302 and 301 are supported"
63+
status: "True"
64+
reason: Accepted
65+
message: Route is accepted
6666
xdsIR:
6767
envoy-gateway-gateway-1:
6868
http:

0 commit comments

Comments
 (0)