Skip to content

Commit

Permalink
chore(tests): fix flake due to missing HTTPRoute CRD
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer04 committed Dec 18, 2024
1 parent 7e04170 commit 6c787c1
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 6c787c1

Please sign in to comment.