Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAddressSetDBIDs ¶
func GetAddressSetDBIDs() *libovsdbops.DbObjectIDs
GetAddressSetDBIDs returns the DB IDs of the address set managed by this controller - an address set for each IP family enabled.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
Controller watches services as defined with binary argument flag --udn-allowed-default-services. It gathers all the clusterIPs from the services defined and updates an address_set with the total set. This address set maybe consumed. It will never be deleted even if UDN is disabled because consumers may still reference it for a period of time.
func NewController ¶
func NewController(nbClient libovsdbclient.Client, addressSetFactory addressset.AddressSetFactory, serviceInformer coreinformers.ServiceInformer, services []string) *Controller
NewController creates a new controller to sync UDN enabled services clusterIPs with an OVN address set. Address set is never deleted and maybe read-only referenced by consumers. Single worker only for processing events.
func (*Controller) IsAddressSetAvailable ¶
func (c *Controller) IsAddressSetAvailable() bool
func (*Controller) Run ¶
func (c *Controller) Run(stopCh <-chan struct{}) error
Run adds event handlers and starts a single worker to copy all UDN enabled services VIPs to an OVN address set and expose that address set to consumers. It will block until stop channel is closed.