diff --git a/cmd/terway-controlplane/terway-controlplane.go b/cmd/terway-controlplane/terway-controlplane.go index 8f6f0bc1..35443d2a 100644 --- a/cmd/terway-controlplane/terway-controlplane.go +++ b/cmd/terway-controlplane/terway-controlplane.go @@ -364,7 +364,7 @@ func initOpenTelemetry(ctx context.Context, serviceName, serviceVersion string, } func detectMultiIP(ctx context.Context, directClient client.Client, cfg *controlplane.Config) error { - if !lo.Contains(cfg.Controllers, multiipnode.ControllerName) { + if !lo.Contains(cfg.Controllers, multiipnode.ControllerName) || cfg.CentralizedIPAM { return nil } diff --git a/types/controlplane/config_default.go b/types/controlplane/config_default.go index ca5357f8..5c51a719 100644 --- a/types/controlplane/config_default.go +++ b/types/controlplane/config_default.go @@ -70,6 +70,7 @@ type Config struct { BackoffOverride map[string]wait.Backoff `json:"backoffOverride,omitempty"` IPAMType string `json:"ipamType"` + CentralizedIPAM bool `json:"centralizedIPAM,omitempty"` RateLimit map[string]int `json:"rateLimit"`