Disable the API GW v2 controller

With the previous commit, this would cause a server to panic due to watching a type which has not yet been created/registered.
pull/20476/head
Matt Keeler 10 months ago
parent 392b8d7573
commit b4716599ae

@ -5,7 +5,6 @@ package controllers
import ( import (
"context" "context"
"github.com/hashicorp/consul/internal/mesh/internal/controllers/apigateways"
"github.com/hashicorp/consul/internal/mesh/internal/controllers/gatewayproxy" "github.com/hashicorp/consul/internal/mesh/internal/controllers/gatewayproxy"
"github.com/hashicorp/consul/internal/mesh/internal/controllers/meshconfiguration" "github.com/hashicorp/consul/internal/mesh/internal/controllers/meshconfiguration"
@ -58,5 +57,8 @@ func Register(mgr *controller.Manager, deps Dependencies) {
mgr.Register(meshgateways.Controller()) mgr.Register(meshgateways.Controller())
mgr.Register(meshconfiguration.Controller()) mgr.Register(meshconfiguration.Controller())
mgr.Register(apigateways.Controller())
// This controller is currently configured to watch types which aren't registered and produces infinite
// errors because of this. Once the watched types are in place we should uncomment this.
// mgr.Register(apigateways.Controller())
} }

Loading…
Cancel
Save