Skip to content

Commit

Permalink
chore(tests): fix flake due to missing HTTPRoute CRD (#6863)
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 authored Dec 18, 2024
1 parent 414a974 commit a6293dd
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions internal/manager/controllerdef.go
Original file line number Diff line number Diff line change
Expand Up @@ -493,11 +493,18 @@ func setupControllers(
Manager: mgr,
Log: ctrl.LoggerFrom(ctx).WithName("controllers").WithName("Dynamic/BackendTLSPolicy"),
CacheSyncTimeout: c.CacheSyncTimeout,
RequiredCRDs: append(baseGatewayCRDs(), schema.GroupVersionResource{
Group: gatewayv1alpha3.GroupVersion.Group,
Version: gatewayv1alpha3.GroupVersion.Version,
Resource: "backendtlspolicies",
}),
RequiredCRDs: append(
baseGatewayCRDs(),
schema.GroupVersionResource{
Group: gatewayv1.GroupVersion.Group,
Version: gatewayv1.GroupVersion.Version,
Resource: "httproutes",
},
schema.GroupVersionResource{
Group: gatewayv1alpha3.GroupVersion.Group,
Version: gatewayv1alpha3.GroupVersion.Version,
Resource: "backendtlspolicies",
}),
Controller: &gateway.BackendTLSPolicyReconciler{
Client: mgr.GetClient(),
Log: ctrl.LoggerFrom(ctx).WithName("controllers").WithName("BackendTLSPolicy"),
Expand Down

0 comments on commit a6293dd

Please sign in to comment.