diff --git a/control-plane/api/common/common.go b/control-plane/api/common/common.go index 53d4c42e96..730fd622ac 100644 --- a/control-plane/api/common/common.go +++ b/control-plane/api/common/common.go @@ -29,13 +29,14 @@ const ( RouteAuthFilter string = "routeauthfilter" GatewayPolicy string = "gatewaypolicy" - // V2 config entries. + // V2 resources. TrafficPermissions string = "trafficpermissions" GRPCRoute string = "grpcroute" HTTPRoute string = "httproute" TCPRoute string = "tcproute" ProxyConfiguration string = "proxyconfiguration" MeshGateway string = "meshgateway" + APIGateway string = "apigateway" GatewayClass string = "gatewayclass" GatewayClassConfig string = "gatewayclassconfig" MeshConfiguration string = "meshconfiguration" diff --git a/control-plane/subcommand/inject-connect/v2controllers.go b/control-plane/subcommand/inject-connect/v2controllers.go index 67c707b592..eff5501f42 100644 --- a/control-plane/subcommand/inject-connect/v2controllers.go +++ b/control-plane/subcommand/inject-connect/v2controllers.go @@ -239,6 +239,16 @@ func (c *Command) configureV2Controllers(ctx context.Context, mgr manager.Manage return err } + if err := (&resourceControllers.MeshGatewayController{ + Controller: consulResourceController, + Client: mgr.GetClient(), + Log: ctrl.Log.WithName("controller").WithName(common.APIGateway), + Scheme: mgr.GetScheme(), + }).SetupWithManager(mgr); err != nil { + setupLog.Error(err, "unable to create controller", "controller", common.APIGateway) + return err + } + if err := (&resourceControllers.GatewayClassConfigController{ Controller: consulResourceController, Client: mgr.GetClient(),