Skip to content

Commit 1a8d2fe

Browse files
committed
Resolve PR comments
Signed-off-by: Nick Young <nick@isovalent.com>
1 parent 82e074d commit 1a8d2fe

4 files changed

Lines changed: 5 additions & 18 deletions

File tree

Documentation/network/servicemesh/gateway-api/gamma.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ Cilium Gateway API Support
6262
##########################
6363

6464
Cilium supports GAMMA v1.0.0 for below resources, passes the Core conformance
65-
tests, and passes two out of three Extended Mesh tests.
65+
tests, and passes two out of three Extended Mesh tests. Note that GAMMA is itself
66+
experimental as at Gateway API v1.0.0.
6667

6768
Cilium currently does not support "consumer" HTTPRoutes, and so does not
6869
support the ``MeshConsumerRoute`` feature of the Mesh conformance profile.

operator/pkg/gateway-api/httproute_gamma_reconcile.go

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,6 @@ import (
3232
// For more details, check Reconcile and its Result here:
3333
// - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.12.2/pkg/reconcile
3434
func (r *gammaHttpRouteReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error) {
35-
// TODO: This currently is copied from the HTTPRoute reconciler, which just
36-
// checks that HTTPRoutes are good before marking them as okay.
37-
// For GAMMA objects, we need to work more like the _Gateway_ reconciler
38-
// which checks things, builds a model, then calls the translation function
39-
// after populating the Input struct with the relevant objects from
40-
// controller-runtime cache.
41-
42-
// FOR NOW, though, this should just log things and update status if they reconcile
43-
// preferably with big GAMMA reconciler tags.
44-
//
45-
// Then, I write the ingestion part to ingest GAMMA stuff into a model
46-
// Then, we test the translation part works
47-
// Then we put it all in here.
4835
scopedLog := log.WithContext(ctx).WithFields(logrus.Fields{
4936
logfields.Controller: "gammaHttpRoute",
5037
logfields.Resource: req.NamespacedName,

operator/pkg/gateway-api/routechecks/gamma_checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func CheckGammaServiceAllowedForNamespace(input Input, parentRef gatewayv1.Paren
1818
input.SetParentCondition(parentRef, metav1.Condition{
1919
Type: "Accepted",
2020
Status: metav1.ConditionFalse,
21-
Reason: "Invalid" + input.GetGVK().Kind,
21+
Reason: "Invalid " + input.GetGVK().Kind,
2222
Message: err.Error(),
2323
})
2424

operator/pkg/model/ingestion/gamma.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,16 +87,15 @@ func GammaHTTPRoutes(input GammaInput) []model.HTTPListener {
8787

8888
parentSvc, err := getMatchingService(parentName.Name, parentName.Namespace, hr.GetNamespace(), input.Services)
8989
if err != nil {
90-
fmt.Printf("Can't find parent Service %s/%s in input\n", parentName.Namespace, parentName.Name)
90+
log.Warnf("Can't find parent Service %s/%s in input", parentName.Namespace, parentName.Name)
9191
continue
9292
}
9393

9494
if parentSvc.GetName() == "" {
9595
// skip processing this parent because it's not in the input.
9696
// This situation should not arise - there should be multiple
9797
// layers of protection.
98-
// TODO: figure out how to handle this.
99-
fmt.Printf("Can't find any parent Service in input\n")
98+
log.Warn("Can't find any parent Service in input. This shouldn't happen.")
10099
continue
101100
}
102101

0 commit comments

Comments
 (0)