Skip to content

Commit

Permalink
add flag to force controlplane run in centralized IPAM
Browse files Browse the repository at this point in the history
Signed-off-by: l1b0k <[email protected]>
  • Loading branch information
l1b0k committed Jan 17, 2025
1 parent d4f14fa commit f070e74
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/terway-controlplane/terway-controlplane.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions types/controlplane/config_default.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`

Expand Down

0 comments on commit f070e74

Please sign in to comment.