Documentation ¶
Index ¶
- func IPAllocateLock(subnet string) func()
- func IsIPAllocating(subnet string) bool
- type Context
- func (c *Context) OnLeader(f func(ctx context.Context) error)
- func (c *Context) Run(ctx context.Context)
- func (c *Context) StartHandler(ctx context.Context, worker int) error
- func (c *Context) SupportDiscoveryV1() bool
- func (c *Context) SupportIngressV1() bool
- func (c *Context) WaitForCacheSyncOrDie(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPAllocateLock ¶
func IPAllocateLock(subnet string) func()
IPAllocateLock locks by subnet name and returns unlock function
func IsIPAllocating ¶
IsIPAllocating checks whether the subnet is locked
Types ¶
type Context ¶
type Context struct { RESTConfig *rest.Config Kubernetes kubernetes.Interface ControllerFactory controller.SharedControllerFactory FlatNetwork flv1.Interface Core corecontroller.Interface Apps appsv1.Interface Networking networkingv1.Interface Batch batchv1.Interface Discovery discoveryv1.Interface // ClientSet for NetworkAttachmentDefinitions NDClientSet *ndClientSet.Clientset Recorder record.EventRecorder // contains filtered or unexported fields }
func NewContextOrDie ¶
func (*Context) StartHandler ¶
func (*Context) SupportDiscoveryV1 ¶
func (*Context) SupportIngressV1 ¶
func (*Context) WaitForCacheSyncOrDie ¶
Click to show internal directories.
Click to hide internal directories.