Skip to content

Commit a8fcbfa

Browse files
committed
fix lint
Signed-off-by: zirain <zirain2009@gmail.com>
1 parent 59fb45c commit a8fcbfa

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

internal/provider/kubernetes/controller.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,9 +1414,7 @@ func (r *gatewayAPIReconciler) processClientTrafficPolicies(
14141414
}
14151415
}
14161416

1417-
r.processCTPCACertificateRefs(ctx, resourceTree, resourceMap)
1418-
1419-
return nil
1417+
return r.processCTPCACertificateRefs(ctx, resourceTree, resourceMap)
14201418
}
14211419

14221420
// processBackendTrafficPolicies adds BackendTrafficPolicies to the resourceTree

internal/provider/kubernetes/controller_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1360,7 +1360,7 @@ func TestProcessBackendRefs(t *testing.T) {
13601360
Name: gwapiv1.ObjectName(backend.Name),
13611361
})
13621362

1363-
r.processBackendRefs(t.Context(), resourceTree, resourceMap)
1363+
require.NoError(t, r.processBackendRefs(t.Context(), resourceTree, resourceMap))
13641364
if tc.ctpShouldBeAdded {
13651365
require.Contains(t, resourceTree.ClusterTrustBundles, ctb)
13661366
} else {

test/helm/gateway-helm/deployment-annotations.out.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,14 @@ rules:
248248
- delete
249249
- deletecollection
250250
- patch
251+
- apiGroups:
252+
- certificates.k8s.io
253+
resources:
254+
- clustertrustbundles
255+
verbs:
256+
- list
257+
- get
258+
- watch
251259
---
252260
# Source: gateway-helm/templates/leader-election-rbac.yaml
253261
apiVersion: rbac.authorization.k8s.io/v1

0 commit comments

Comments
 (0)