Skip to content

Commit 8b513a2

Browse files
committed
fix: lint
Signed-off-by: ashing <[email protected]>
1 parent 2cdf634 commit 8b513a2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/controller/gateway_controller.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,9 +275,9 @@ func (r *GatewayReconciler) processGatewayProxy(tctx *provider.TranslateContext,
275275
gatewayProxy := &v1alpha1.GatewayProxy{}
276276
if err := r.Get(context.Background(), client.ObjectKey{
277277
Namespace: ns,
278-
Name: string(paramRef.Name),
278+
Name: paramRef.Name,
279279
}, gatewayProxy); err != nil {
280-
log.Error(err, "failed to get GatewayProxy", "namespace", ns, "name", string(paramRef.Name))
280+
log.Error(err, "failed to get GatewayProxy", "namespace", ns, "name", paramRef.Name)
281281
} else {
282282
log.Info("found GatewayProxy for Gateway", "gateway", gateway.Name, "gatewayproxy", gatewayProxy.Name)
283283
tctx.GatewayProxy = gatewayProxy

internal/controller/indexer/indexer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ func GatewayParametersRefIndexFunc(rawObj client.Object) []string {
5858
if gw.Spec.Infrastructure != nil && gw.Spec.Infrastructure.ParametersRef != nil {
5959
// now we only care about kind: GatewayProxy
6060
if gw.Spec.Infrastructure.ParametersRef.Kind == "GatewayProxy" {
61-
keys = append(keys, GenIndexKey(gw.GetNamespace(), string(gw.Spec.Infrastructure.ParametersRef.Name)))
61+
keys = append(keys, GenIndexKey(gw.GetNamespace(), gw.Spec.Infrastructure.ParametersRef.Name))
6262
}
6363
}
6464
return keys

0 commit comments

Comments
 (0)