Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Log = core.Log.WithName("dns-vips-allocator")
Functions ¶
func AllocateVIPs ¶ added in v1.8.1
func AllocateVIPs(global *vips.GlobalView, voView *vips.VirtualOutboundMeshView) (errs error)
func Match ¶ added in v1.8.1
func Match(vos []*core_mesh.VirtualOutboundResource, tags map[string]string) []*core_mesh.VirtualOutboundResource
Types ¶
type VIPsAllocator ¶
type VIPsAllocator struct {
// contains filtered or unexported fields
}
func NewVIPsAllocator ¶
func NewVIPsAllocator(rm manager.ReadOnlyResourceManager, configManager config_manager.ConfigManager, config dns_server.Config, zone string) (*VIPsAllocator, error)
NewVIPsAllocator creates new object of VIPsAllocator. You can either call method CreateOrUpdateVIPConfig manually or start VIPsAllocator as a component. In the latter scenario it will call CreateOrUpdateVIPConfig every 'tickInterval' for all meshes in the store.
func (*VIPsAllocator) BuildVirtualOutboundMeshView ¶ added in v1.8.1
func (d *VIPsAllocator) BuildVirtualOutboundMeshView(ctx context.Context, mesh string) (*vips.VirtualOutboundMeshView, error)
func (*VIPsAllocator) CreateOrUpdateVIPConfig ¶
func (d *VIPsAllocator) CreateOrUpdateVIPConfig(ctx context.Context, mesh string, viewModificator func(*vips.VirtualOutboundMeshView) error) error
func (*VIPsAllocator) CreateOrUpdateVIPConfigs ¶
func (d *VIPsAllocator) CreateOrUpdateVIPConfigs(ctx context.Context) error
Click to show internal directories.
Click to hide internal directories.