Skip to content

Commit e65cb6a

Browse files
committed
appease linter
On-behalf-of: @SAP [email protected]
1 parent 3206c99 commit e65cb6a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/controller/kubeconfig-rbac/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ func (r *KubeconfigRBACReconciler) reconcileBindings(ctx context.Context, kc *op
152152
Name: kubeconfig.KubeconfigGroup(kc),
153153
}
154154

155-
var reconcilers []reconciling.NamedClusterRoleBindingReconcilerFactory
155+
reconcilers := make([]reconciling.NamedClusterRoleBindingReconcilerFactory, 0, desiredBindings.Len())
156156
for _, roleName := range sets.List(desiredBindings) {
157157
reconcilers = append(reconcilers, kubeconfig.ClusterRoleBindingReconciler(kc, roleName, subject))
158158
}

0 commit comments

Comments
 (0)