From a6293dd9ad11e2b3d5c122614af2404835f54fdd Mon Sep 17 00:00:00 2001 From: Jakub Warczarek Date: Wed, 18 Dec 2024 12:58:52 +0100 Subject: [PATCH] chore(tests): fix flake due to missing HTTPRoute CRD (#6863) --- internal/manager/controllerdef.go | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/internal/manager/controllerdef.go b/internal/manager/controllerdef.go index 0e110f83c8..8268340175 100644 --- a/internal/manager/controllerdef.go +++ b/internal/manager/controllerdef.go @@ -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"),