@@ -27,24 +27,24 @@ type Updater interface {
2727//
2828// (1) It doesn't understand the leader election. Only the leader must report the statuses of the resources. Otherwise,
2929// multiple replicas will step on each other when trying to report statuses for the same resources.
30- // TO-DO : address limitation (1)
30+ // FIXME(pleshakov) : address limitation (1)
3131//
3232// (2) It is synchronous, which means the status reporter can slow down the event loop.
3333// Consider the following cases:
3434// (a) Sometimes the Gateway will need to update statuses of all resources it handles, which could be ~1000. Making 1000
3535// status API calls sequentially will take time.
3636// (b) k8s API can become slow or even timeout. This will increase every update status API call.
3737// Making updaterImpl asynchronous will prevent it from adding variable delays to the event loop.
38- // TO-DO: address limitation (2)
38+ // FIXME(pleshakov) address limitation (2)
3939//
4040// (3) It doesn't retry on failures. This means there is a chance that some resources will not have up-to-do statuses.
4141// Statuses are important part of the Gateway API, so we need to ensure that the Gateway always keep the resources
4242// statuses up-to-date.
43- // TO-DO : address limitation (3)
43+ // FIXME(pleshakov) : address limitation (3)
4444//
4545// (4) To support new resources, updaterImpl needs to be modified. Consider making updaterImpl extendable, so that it
4646// goes along the Open-closed principle.
47- // TO-DO : address limitation (4)
47+ // FIXME(pleshakov) : address limitation (4)
4848type updaterImpl struct {
4949 client client.Client
5050 logger logr.Logger
@@ -77,7 +77,7 @@ func (upd *updaterImpl) ProcessStatusUpdates(ctx context.Context, updates []stat
7777
7878 upd .update (ctx , u .NamespacedName , & hr , func (object client.Object ) {
7979 route := object .(* v1alpha2.HTTPRoute )
80- // TO-DO : merge the conditions in the status with the conditions in the route.Status properly, because
80+ // FIXME(pleshakov) : merge the conditions in the status with the conditions in the route.Status properly, because
8181 // right now, we are replacing the conditions.
8282 route .Status = * s
8383 })
@@ -89,7 +89,7 @@ func (upd *updaterImpl) ProcessStatusUpdates(ctx context.Context, updates []stat
8989
9090func (upd * updaterImpl ) update (ctx context.Context , nsname types.NamespacedName , obj client.Object , statusSetter func (client.Object )) {
9191 // The function handles errors by reporting them in the logs.
92- // TO-DO : figure out appropriate log level for these errors. Perhaps 3?
92+ // FIXME(pleshakov) : figure out appropriate log level for these errors. Perhaps 3?
9393
9494 // We need to get the latest version of the resource.
9595 // Otherwise, the Update status API call can fail.
0 commit comments