Skip to content

Commit

Permalink
Merge pull request #784 from l1b0k/feat/ipam_
Browse files Browse the repository at this point in the history
add flag to force controlplane run in centralized IPAM
  • Loading branch information
BSWANG authored Feb 10, 2025
2 parents 8cb87e0 + f070e74 commit 58849ba
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 58849ba

Please sign in to comment.