Documentation
¶
Index ¶
- Constants
- func IPSetGetter(ctx context.Context, c client.Reader) manager.IPSetGetter
- func InitIndexers(mgr ctrl.Manager) (err error)
- func NetworkGetter(ctx context.Context, c client.Reader) manager.NetworkGetter
- func RegisterToManager(ctx context.Context, mgr manager.Manager, options RegisterOptions) error
- func SubnetGetter(ctx context.Context, c client.Reader) manager.SubnetGetter
- type IPAMManager
- type IPAMReconciler
- type IPAMStore
- type IPInstanceReconciler
- type NetworkStatusReconciler
- type NewIPAMManagerFunction
- type NodeReconciler
- type PodIPCache
- type PodReconciler
- type QuotaReconciler
- type RegisterOptions
- type SubnetStatusReconciler
Constants ¶
const ( ControllerNetworkStatus = "NetworkStatus" IndexerFieldNetwork = "network" )
const ( ReasonIPAllocationSucceed = "IPAllocationSucceed" ReasonIPAllocationFail = "IPAllocationFail" ReasonIPReleaseSucceed = "IPReleaseSucceed" ReasonIPReserveSucceed = "IPReserveSucceed" )
const ( IndexerFieldMAC = "mac" IndexerFieldNode = "node" OverlayNodeName = "c3e6699d28e7" GlobalBGPNodeName = "d7afdca2c149" )
const ControllerIPAM = "IPAM"
const ControllerIPInstance = "IPInstance"
const ControllerNode = "Node"
const ControllerPod = "Pod"
const ControllerQuota = "Quota"
const ControllerSubnetStatus = "SubnetStatus"
Variables ¶
This section is empty.
Functions ¶
func IPSetGetter ¶
func InitIndexers ¶ added in v0.5.0
func NetworkGetter ¶
func RegisterToManager ¶ added in v0.6.0
func SubnetGetter ¶
Types ¶
type IPAMManager ¶
func NewIPAMManager ¶
type IPAMReconciler ¶
type IPAMReconciler struct {
client.Client
IPAMManager IPAMManager
NetworkStatusUpdateChan chan<- event.GenericEvent
SubnetStatusUpdateChan chan<- event.GenericEvent
concurrency.ControllerConcurrency
}
IPAMReconciler reconciles IPAM Manager
func (*IPAMReconciler) SetupWithManager ¶
func (r *IPAMReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type IPAMStore ¶
func NewIPAMStore ¶
type IPInstanceReconciler ¶
type IPInstanceReconciler struct {
client.Client
// TODO: construct
PodIPCache PodIPCache
IPAMManager IPAMManager
IPAMStore IPAMStore
concurrency.ControllerConcurrency
}
IPInstanceReconciler reconciles a IPInstance object
func (*IPInstanceReconciler) SetupWithManager ¶
func (r *IPInstanceReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type NetworkStatusReconciler ¶
type NetworkStatusReconciler struct {
context.Context
client.Client
IPAMManager IPAMManager
Recorder record.EventRecorder
NetworkStatusUpdateChan <-chan event.GenericEvent
concurrency.ControllerConcurrency
}
NetworkStatusReconciler reconciles status of network objects
func (*NetworkStatusReconciler) SetupWithManager ¶
func (r *NetworkStatusReconciler) SetupWithManager(mgr ctrl.Manager) (err error)
SetupWithManager sets up the controller with the Manager.
type NewIPAMManagerFunction ¶ added in v0.6.0
type NodeReconciler ¶
type NodeReconciler struct {
context.Context
client.Client
concurrency.ControllerConcurrency
}
NodeReconciler reconciles a Node object
func (*NodeReconciler) SetupWithManager ¶
func (r *NodeReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type PodIPCache ¶ added in v0.5.0
type PodIPCache interface {
Record(podUID types.UID, podName, namespace string, ipInstanceNames []string)
ReleaseIP(ipInstanceName, namespace string)
ReleasePod(podName, namespace string)
Get(podName, namespace string) (bool, types.UID, []string)
}
func NewPodIPCache ¶ added in v0.5.0
type PodReconciler ¶
type PodReconciler struct {
APIReader client.Reader
client.Client
Recorder record.EventRecorder
PodIPCache PodIPCache
IPAMStore IPAMStore
IPAMManager IPAMManager
concurrency.ControllerConcurrency
}
PodReconciler reconciles a Pod object
func (*PodReconciler) SetupWithManager ¶
func (r *PodReconciler) SetupWithManager(mgr ctrl.Manager) (err error)
SetupWithManager sets up the controller with the Manager.
type QuotaReconciler ¶
type QuotaReconciler struct {
context.Context
client.Client
concurrency.ControllerConcurrency
}
QuotaReconciler reconciles quota labels on node
func (*QuotaReconciler) SetupWithManager ¶
func (r *QuotaReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.
type RegisterOptions ¶ added in v0.6.0
type RegisterOptions struct {
NewIPAMManager NewIPAMManagerFunction
ConcurrencyMap map[string]int
}
type SubnetStatusReconciler ¶
type SubnetStatusReconciler struct {
client.Client
IPAMManager IPAMManager
Recorder record.EventRecorder
SubnetStatusUpdateChan <-chan event.GenericEvent
concurrency.ControllerConcurrency
}
SubnetStatusReconciler reconciles a Subnet object
func (*SubnetStatusReconciler) SetupWithManager ¶
func (r *SubnetStatusReconciler) SetupWithManager(mgr ctrl.Manager) error
SetupWithManager sets up the controller with the Manager.