Skip to content

Commit

Permalink
Merge branch 'main' into add-exp-conformance
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunzhuo authored Aug 11, 2023
2 parents 02c4b24 + f466430 commit b104778
Show file tree
Hide file tree
Showing 42 changed files with 182 additions and 57 deletions.
2 changes: 1 addition & 1 deletion OWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ maintainers:

- AliceProxy
- arkodg
- skriss
- Xunzhuo
- zirain
- qicz

reviewers:

Expand Down
2 changes: 1 addition & 1 deletion charts/gateway-helm/values.tmpl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ deployment:
kubeRbacProxy:
image:
repository: gcr.io/kubebuilder/kube-rbac-proxy
tag: v0.11.0
tag: v0.14.1
resources:
limits:
cpu: 500m
Expand Down
10 changes: 7 additions & 3 deletions docs/latest/design/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ contributing to the project.

### [v0.5.0][v0.5.0]: Observability and Scale

- Observability for control plane and data plane [Issue #701][701].
- Compute and document Envoy Gateway performance [Issue #1365][1365].
- Observability for data plane [Issue #699][699].
- Allow users to configure xDS Resources [Issue #24][24].

### [v0.6.0][v0.6.0]: Preparation for GA

- Observability for control plane [Issue #700][700].
- Compute and document Envoy Gateway performance [Issue #1365][1365].
- Add TrafficPolicy APIs for advanced features [Issue #1492][1492].
- Envoy Gateway meets readiness criteria [Issue #1160][1160].

[issue]: https://github.com/envoyproxy/gateway/issues
Expand Down Expand Up @@ -82,7 +84,9 @@ contributing to the project.
[643]: https://github.com/envoyproxy/gateway/issues/643
[670]: https://github.com/envoyproxy/gateway/issues/670
[675]: https://github.com/envoyproxy/gateway/issues/675
[701]: https://github.com/envoyproxy/gateway/issues/701
[699]: https://github.com/envoyproxy/gateway/issues/699
[700]: https://github.com/envoyproxy/gateway/issues/700
[707]: https://github.com/envoyproxy/gateway/issues/707
[1160]: https://github.com/envoyproxy/gateway/issues/1160
[1365]: https://github.com/envoyproxy/gateway/issues/1365
[1492]: https://github.com/envoyproxy/gateway/issues/1492
5 changes: 3 additions & 2 deletions docs/latest/dev/CODEOWNERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@

- @AliceProxy
- @arkodg
- @skriss
- @Xunzhuo
- @youngnick
- @zirain
- @qicz

## Emeritus Maintainers

- @danehans
- @alexgervais
- @skriss
- @youngnick
10 changes: 7 additions & 3 deletions docs/v0.5.0/design/roadmap.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ contributing to the project.

### [v0.5.0][v0.5.0]: Observability and Scale

- Observability for control plane and data plane [Issue #701][701].
- Compute and document Envoy Gateway performance [Issue #1365][1365].
- Observability for data plane [Issue #699][699].
- Allow users to configure xDS Resources [Issue #24][24].

### [v0.6.0][v0.6.0]: Preparation for GA

- Observability for control plane [Issue #700][700].
- Compute and document Envoy Gateway performance [Issue #1365][1365].
- Add TrafficPolicy APIs for advanced features [Issue #1492][1492].
- Envoy Gateway meets readiness criteria [Issue #1160][1160].

[issue]: https://github.com/envoyproxy/gateway/issues
Expand Down Expand Up @@ -82,7 +84,9 @@ contributing to the project.
[643]: https://github.com/envoyproxy/gateway/issues/643
[670]: https://github.com/envoyproxy/gateway/issues/670
[675]: https://github.com/envoyproxy/gateway/issues/675
[701]: https://github.com/envoyproxy/gateway/issues/701
[699]: https://github.com/envoyproxy/gateway/issues/699
[700]: https://github.com/envoyproxy/gateway/issues/700
[707]: https://github.com/envoyproxy/gateway/issues/707
[1160]: https://github.com/envoyproxy/gateway/issues/1160
[1365]: https://github.com/envoyproxy/gateway/issues/1365
[1492]: https://github.com/envoyproxy/gateway/issues/1492
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
"clusters": [
{
"connectTimeout": "10s",
"http2ProtocolOptions": {
"connectionKeepalive": {
"interval": "30s",
"timeout": "5s"
}
},
"loadAssignment": {
"clusterName": "xds_cluster",
"endpoints": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ xds:
staticResources:
clusters:
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ xds:
staticResources:
clusters:
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ envoyProxy:
http2_protocol_options: {}
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down Expand Up @@ -460,6 +464,10 @@ xds:
staticResources:
clusters:
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ xds:
staticResources:
clusters:
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
"clusters": [
{
"connectTimeout": "10s",
"http2ProtocolOptions": {
"connectionKeepalive": {
"interval": "30s",
"timeout": "5s"
}
},
"loadAssignment": {
"clusterName": "xds_cluster",
"endpoints": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ xds:
staticResources:
clusters:
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ xds:
staticResources:
clusters:
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@
"clusters": [
{
"connectTimeout": "10s",
"http2ProtocolOptions": {
"connectionKeepalive": {
"interval": "30s",
"timeout": "5s"
}
},
"loadAssignment": {
"clusterName": "xds_cluster",
"endpoints": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ xds:
staticResources:
clusters:
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ xds:
staticResources:
clusters:
- connectTimeout: 10s
http2ProtocolOptions:
connectionKeepalive:
interval: 30s
timeout: 5s
loadAssignment:
clusterName: xds_cluster
endpoints:
Expand Down
18 changes: 18 additions & 0 deletions internal/gatewayapi/route.go
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,24 @@ func (t *Translator) processHTTPRouteParentRefListener(route RouteContext, route
}

for _, routeRoute := range routeRoutes {
// If the redirect port is not set, the final redirect port must be derived.
if routeRoute.Redirect != nil && routeRoute.Redirect.Port == nil {
redirectPort := uint32(listener.Port)
// If redirect scheme is not-empty, the redirect post must be the
// well-known port associated with the redirect scheme.
if scheme := routeRoute.Redirect.Scheme; scheme != nil {
switch strings.ToLower(*scheme) {
case "http":
redirectPort = 80
case "https":
redirectPort = 443
}
}
// If the redirect scheme does not have a well-known port, or
// if the redirect scheme is empty, the redirect port must be the Gateway Listener port.
routeRoute.Redirect.Port = &redirectPort
}

hostRoute := &ir.HTTPRoute{
Name: fmt.Sprintf("%s-%s", routeRoute.Name, host),
PathMatch: routeRoute.PathMatch,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,6 @@ xdsIR:
path:
fullReplace: /redirected
prefixMatchReplace: null
port: null
port: 443
scheme: https
statusCode: 301
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,6 @@ xdsIR:
redirect:
hostname: redirected.com
path: null
port: null
port: 443
scheme: https
statusCode: 301
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/managed-by: envoy-gateway
gateway.envoyproxy.io/owning-gateway-name: default
gateway.envoyproxy.io/owning-gateway-namespace: default
name: envoy-default-64656661
name: envoy-default-37a8eec1
namespace: envoy-gateway-system
data:
xds-certificate.json: '{"resources":[{"@type":"type.googleapis.com/envoy.extensions.transport_sockets.tls.v3.Secret","name":"xds_certificate","tls_certificate":{"certificate_chain":{"filename":"/certs/tls.crt"},"private_key":{"filename":"/certs/tls.key"}}}]}'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/managed-by: envoy-gateway
gateway.envoyproxy.io/owning-gateway-name: default
gateway.envoyproxy.io/owning-gateway-namespace: default
name: envoy-default-64656661
name: envoy-default-37a8eec1
namespace: envoy-gateway-system
spec:
replicas: 1
Expand Down Expand Up @@ -84,7 +84,7 @@ spec:
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
serviceAccountName: envoy-default-64656661
serviceAccountName: envoy-default-37a8eec1
terminationGracePeriodSeconds: 300
volumes:
- name: certs
Expand All @@ -98,7 +98,7 @@ spec:
path: xds-trusted-ca.json
- key: xds-certificate.json
path: xds-certificate.json
name: envoy-default-64656661
name: envoy-default-37a8eec1
optional: false
name: sds
revisionHistoryLimit: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/managed-by: envoy-gateway
gateway.envoyproxy.io/owning-gateway-name: default
gateway.envoyproxy.io/owning-gateway-namespace: default
name: envoy-default-64656661
name: envoy-default-37a8eec1
namespace: envoy-gateway-system
spec:
replicas: 1
Expand Down Expand Up @@ -85,7 +85,7 @@ spec:
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
serviceAccountName: envoy-default-64656661
serviceAccountName: envoy-default-37a8eec1
terminationGracePeriodSeconds: 300
volumes:
- name: certs
Expand All @@ -99,7 +99,7 @@ spec:
path: xds-trusted-ca.json
- key: xds-certificate.json
path: xds-certificate.json
name: envoy-default-64656661
name: envoy-default-37a8eec1
optional: false
name: sds
revisionHistoryLimit: 10
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ metadata:
app.kubernetes.io/managed-by: envoy-gateway
gateway.envoyproxy.io/owning-gateway-name: default
gateway.envoyproxy.io/owning-gateway-namespace: default
name: envoy-default-64656661
name: envoy-default-37a8eec1
namespace: envoy-gateway-system
spec:
replicas: 2
Expand Down Expand Up @@ -109,6 +109,10 @@ spec:
http2_protocol_options: {}
name: xds_cluster
type: STRICT_DNS
http2_protocol_options:
connection_keepalive:
interval: 30s
timeout: 5s
transport_socket:
name: envoy.transport_sockets.tls
typed_config:
Expand Down Expand Up @@ -190,7 +194,7 @@ spec:
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
serviceAccountName: envoy-default-64656661
serviceAccountName: envoy-default-37a8eec1
terminationGracePeriodSeconds: 300
securityContext:
runAsUser: 1000
Expand All @@ -206,7 +210,7 @@ spec:
path: xds-trusted-ca.json
- key: xds-certificate.json
path: xds-certificate.json
name: envoy-default-64656661
name: envoy-default-37a8eec1
optional: false
name: sds
revisionHistoryLimit: 10
Expand Down
Loading

0 comments on commit b104778

Please sign in to comment.