@@ -23,10 +23,10 @@ const (
23
23
// Configuration is an intermediate representation of dataplane configuration.
24
24
type Configuration struct {
25
25
// HTTPServers holds all HTTPServers.
26
- // FIXME(pleshakov) We assume that all servers are HTTP and listen on port 80.
26
+ // We assume that all servers are HTTP and listen on port 80.
27
27
HTTPServers []VirtualServer
28
28
// SSLServers holds all SSLServers.
29
- // FIXME(kate-osborn) We assume that all SSL servers listen on port 443.
29
+ // We assume that all SSL servers listen on port 443.
30
30
SSLServers []VirtualServer
31
31
// Upstreams holds all unique Upstreams.
32
32
Upstreams []Upstream
@@ -87,8 +87,6 @@ type MatchRule struct {
87
87
// Filters holds the filters for the MatchRule.
88
88
Filters Filters
89
89
// Source is the corresponding HTTPRoute resource.
90
- // FIXME(pleshakov): Consider referencing only the parts needed for the config generation rather than
91
- // the entire resource.
92
90
Source * v1beta1.HTTPRoute
93
91
// BackendGroup is the group of Backends that the rule routes to.
94
92
BackendGroup BackendGroup
@@ -135,7 +133,6 @@ func (r *MatchRule) GetMatch() v1beta1.HTTPRouteMatch {
135
133
}
136
134
137
135
// BuildConfiguration builds the Configuration from the Graph.
138
- // FIXME(pleshakov) For now we only handle paths with prefix matches. Handle exact and regex matches
139
136
func BuildConfiguration (ctx context.Context , g * graph.Graph , resolver resolver.ServiceResolver ) Configuration {
140
137
if g .GatewayClass == nil || ! g .GatewayClass .Valid {
141
138
return Configuration {}
@@ -372,8 +369,6 @@ func (hpr *hostPathRules) buildServers() []VirtualServer {
372
369
hostname := getListenerHostname (l .Source .Hostname )
373
370
// Generate a 404 ssl server block for listeners with no routes or listeners with wildcard (match-all) routes.
374
371
// This server overrides the default ssl server.
375
- // FIXME(kate-osborn): when we support regex hostnames (e.g. *.example.com)
376
- // we will have to modify this check to catch regex hostnames.
377
372
if len (l .Routes ) == 0 || hostname == wildcardHostname {
378
373
s := VirtualServer {
379
374
Hostname : hostname ,
@@ -503,7 +498,7 @@ func convertPathType(pathType v1beta1.PathMatchType) PathType {
503
498
504
499
// listenerHostnameMoreSpecific returns true if host1 is more specific than host2 (using length).
505
500
//
506
- // FIXME(sberman): Since the only caller of this function specifies listener hostnames that are both
501
+ // Since the only caller of this function specifies listener hostnames that are both
507
502
// bound to the same route hostname, this function assumes that host1 and host2 match, either
508
503
// exactly or as a substring.
509
504
//
0 commit comments