Documentation ¶
Index ¶
- Constants
- func ReconcileSubnet(hs *v1.HostSubnet, cidrs *CIDRMap, getMachine MachineGetter, ...) string
- type CIDRMap
- func (m *CIDRMap) Delete(machineSetName string)
- func (m *CIDRMap) EqualCIRDs(machineSetName string, other []v1.HostSubnetEgressCIDR) bool
- func (m *CIDRMap) Equals(machineSetName, v string) bool
- func (m *CIDRMap) Exists(machineSetName string) bool
- func (m *CIDRMap) Get(machineSetName string) []v1.HostSubnetEgressCIDR
- func (m *CIDRMap) Set(machineSetName, s string)
- type Controller
- func (c *Controller) AddHostSubnet(hs *v1.HostSubnet)
- func (c *Controller) AddMachineSet(ms *v1beta1.MachineSet)
- func (c *Controller) DeleteHostSubnet(hs *v1.HostSubnet)
- func (c *Controller) DeleteMachineSet(ms *v1beta1.MachineSet)
- func (c *Controller) Run(ctx context.Context)
- func (c *Controller) UpdateHostSubnet(_, hs *v1.HostSubnet)
- func (c *Controller) UpdateMachineSet(_, ms *v1beta1.MachineSet)
- type HostSubnetUpdater
- type MachineGetter
Constants ¶
View Source
const ( AnnotationEgressCIDRS = "appuio.ch/egress-cidrs" LeaseLockName = "machineset-egress-cidr-operator.appuio.ch" MachineNamespace = "openshift-machine-api" MachinesetLabel = "machine.openshift.io/cluster-api-machineset" RoleLabel = "machine.openshift.io/cluster-api-machine-role" )
Variables ¶
This section is empty.
Functions ¶
func ReconcileSubnet ¶
func ReconcileSubnet( hs *v1.HostSubnet, cidrs *CIDRMap, getMachine MachineGetter, updateHostSubnet HostSubnetUpdater, ) string
Types ¶
type CIDRMap ¶
type CIDRMap struct {
// contains filtered or unexported fields
}
func NewCIDRMap ¶
func NewCIDRMap() *CIDRMap
func (*CIDRMap) EqualCIRDs ¶
func (m *CIDRMap) EqualCIRDs(machineSetName string, other []v1.HostSubnetEgressCIDR) bool
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func New ¶
func New(config *rest.Config) *Controller
func (*Controller) AddHostSubnet ¶
func (c *Controller) AddHostSubnet(hs *v1.HostSubnet)
func (*Controller) AddMachineSet ¶
func (c *Controller) AddMachineSet(ms *v1beta1.MachineSet)
func (*Controller) DeleteHostSubnet ¶
func (c *Controller) DeleteHostSubnet(hs *v1.HostSubnet)
func (*Controller) DeleteMachineSet ¶
func (c *Controller) DeleteMachineSet(ms *v1beta1.MachineSet)
func (*Controller) Run ¶
func (c *Controller) Run(ctx context.Context)
func (*Controller) UpdateHostSubnet ¶
func (c *Controller) UpdateHostSubnet(_, hs *v1.HostSubnet)
func (*Controller) UpdateMachineSet ¶
func (c *Controller) UpdateMachineSet(_, ms *v1beta1.MachineSet)
type HostSubnetUpdater ¶
type HostSubnetUpdater func(ctx context.Context, hostSubnet *v1.HostSubnet, opts metav1.UpdateOptions) (*v1.HostSubnet, error)
Click to show internal directories.
Click to hide internal directories.