Browse Source

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
commit
b4716599ae
  1. 6
      internal/mesh/internal/controllers/register.go

6
internal/mesh/internal/controllers/register.go

@ -5,7 +5,6 @@ package controllers
import (
"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/meshconfiguration"
@ -58,5 +57,8 @@ func Register(mgr *controller.Manager, deps Dependencies) {
mgr.Register(meshgateways.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