Skip to content

Commit

Permalink
Register Whereabouts CNI as a valid IPAMType for secondary network co…
Browse files Browse the repository at this point in the history
…nfiguration

Signed-off-by: root <[email protected]>
  • Loading branch information
arunvelayutham committed Jul 15, 2022
1 parent 2f9134b commit 66af7fb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/agent/cniserver/ipam/antrea_ipam.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (

const (
AntreaIPAMType = "antrea"
WhereaboutsIPAMType = "whereabouts"
)

// Antrea IPAM driver would allocate IP addresses according to object IPAM annotation,
Expand Down Expand Up @@ -365,4 +366,7 @@ func init() {

// Host local plugin is fallback driver
RegisterIPAMDriver(AntreaIPAMType, &IPAMDelegator{pluginType: ipamHostLocal})

// Whereabouts plugin for secondary network configuration.
RegisterIPAMDriver(WhereaboutsIPAMType, &IPAMDelegator{pluginType: WhereaboutsIPAMType})
}

0 comments on commit 66af7fb

Please sign in to comment.