@@ -23,10 +23,10 @@ const (
2323// Configuration is an intermediate representation of dataplane configuration.
2424type Configuration struct {
2525 // 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.
2727 HTTPServers []VirtualServer
2828 // 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.
3030 SSLServers []VirtualServer
3131 // Upstreams holds all unique Upstreams.
3232 Upstreams []Upstream
@@ -87,8 +87,6 @@ type MatchRule struct {
8787 // Filters holds the filters for the MatchRule.
8888 Filters Filters
8989 // 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.
9290 Source * v1beta1.HTTPRoute
9391 // BackendGroup is the group of Backends that the rule routes to.
9492 BackendGroup BackendGroup
@@ -135,7 +133,6 @@ func (r *MatchRule) GetMatch() v1beta1.HTTPRouteMatch {
135133}
136134
137135// BuildConfiguration builds the Configuration from the Graph.
138- // FIXME(pleshakov) For now we only handle paths with prefix matches. Handle exact and regex matches
139136func BuildConfiguration (ctx context.Context , g * graph.Graph , resolver resolver.ServiceResolver ) Configuration {
140137 if g .GatewayClass == nil || ! g .GatewayClass .Valid {
141138 return Configuration {}
@@ -372,8 +369,6 @@ func (hpr *hostPathRules) buildServers() []VirtualServer {
372369 hostname := getListenerHostname (l .Source .Hostname )
373370 // Generate a 404 ssl server block for listeners with no routes or listeners with wildcard (match-all) routes.
374371 // 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.
377372 if len (l .Routes ) == 0 || hostname == wildcardHostname {
378373 s := VirtualServer {
379374 Hostname : hostname ,
@@ -503,7 +498,7 @@ func convertPathType(pathType v1beta1.PathMatchType) PathType {
503498
504499// listenerHostnameMoreSpecific returns true if host1 is more specific than host2 (using length).
505500//
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
507502// bound to the same route hostname, this function assumes that host1 and host2 match, either
508503// exactly or as a substring.
509504//
0 commit comments