Skip to content

Commit 6900ddb

Browse files
committed
Fix controller name
1 parent 5792db0 commit 6900ddb

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/controllers/gateway_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func (r *gatewayReconciler) reconcile(ctx context.Context, req ctrl.Request) err
146146
}
147147

148148
if !k8s.IsControlledByLatticeGatewayController(ctx, r.client, gw) {
149-
r.log.Infow(ctx, "Gateway is not controlled by Lattice Gateway Controller", "name", req.Name)
149+
r.log.Infow(ctx, "Gateway is not controlled by AWS Gateway API Controller", "name", req.Name)
150150
return nil
151151
}
152152

pkg/webhook/pod_readiness_gate_injector.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,16 @@ func (m *PodReadinessGateInjector) routeHasLatticeGateway(ctx context.Context, r
179179
}
180180
parents, err := k8sutils.FindControlledParents(ctx, m.k8sClient, route)
181181
// If there is at least one parent element and an error exists,
182-
// it is not an error related to the parent controlled by the Lattice Controller, so return true
182+
// it is not an error related to the parent controlled by the AWS Gateway API Controller, so return true
183183
if len(parents) > 0 {
184184
gw := parents[0]
185-
m.log.Debugf(ctx, "Gateway %s/%s is a lattice gateway", gw.Namespace, gw.Name)
185+
m.log.Debugf(ctx, "Gateway %s/%s is a AWS Gateway API Controller", gw.Namespace, gw.Name)
186186
return true
187187
}
188188
if err != nil {
189189
m.log.Debugf(ctx, "Unable to retrieve controlled parents for route %s/%s, %s", route.Namespace(), route.Name(), err)
190190
return false
191191
}
192-
m.log.Debugf(ctx, "Route %s/%s has no controlled lattice gateway", route.Namespace(), route.Name())
192+
m.log.Debugf(ctx, "Route %s/%s has no controlled AWS Gateway API Controller", route.Namespace(), route.Name())
193193
return false
194194
}

0 commit comments

Comments
 (0)