Documentation
¶
Index ¶
- func NewReconcile(k8sClient client.Client, eventRecorder record.EventRecorder, ...) (*reconciler, error)
- type Manger
- type MangerImp
- func (m *MangerImp) AllocateAnycastIp(node *corev1.Node, additionalTags map[string]string) (string, error)
- func (m *MangerImp) AssociateAnycastIp(node *corev1.Node, anycastIpId string) error
- func (m *MangerImp) DisassociateAnycastIp(anycastIpId string) error
- func (m *MangerImp) GetAnycastIpByTags(nodeName string) (bool, string, error)
- func (m *MangerImp) GetOrCreateClusterUuidInCm() (string, error)
- func (m *MangerImp) IsAiaNode(labels map[string]string, node *corev1.Node) bool
- func (m *MangerImp) IsCvmNeedToAllocateAnyCastIp(node *corev1.Node) (bool, error)
- func (m *MangerImp) ProcessingEipType() string
- func (m *MangerImp) ReleaseAnycastIp(anycastIpId string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewReconcile ¶
func NewReconcile(k8sClient client.Client, eventRecorder record.EventRecorder, controllerConfig *config.ControllerConfig, logger logr.Logger) (*reconciler, error)
Types ¶
type Manger ¶
type Manger interface { ProcessingEipType() string IsAiaNode(labels map[string]string, node *corev1.Node) bool IsCvmNeedToAllocateAnyCastIp(node *corev1.Node) (bool, error) GetAnycastIpByTags(nodeName string) (bool, string, error) GetOrCreateClusterUuidInCm() (string, error) AllocateAnycastIp(node *corev1.Node, additionalTags map[string]string) (string, error) AssociateAnycastIp(node *corev1.Node, anycastIpId string) error DisassociateAnycastIp(anycastIpId string) error ReleaseAnycastIp(anycastIpId string) error }
Manger is not only take care of aia ip staff, but also HighQualityEIP
type MangerImp ¶
type MangerImp struct {
// contains filtered or unexported fields
}
func (*MangerImp) AllocateAnycastIp ¶
func (*MangerImp) AssociateAnycastIp ¶
func (*MangerImp) DisassociateAnycastIp ¶
func (*MangerImp) GetAnycastIpByTags ¶
func (*MangerImp) GetOrCreateClusterUuidInCm ¶
func (*MangerImp) IsAiaNode ¶
IsAiaNode will check if a node has labels that user specify in config file
func (*MangerImp) IsCvmNeedToAllocateAnyCastIp ¶
func (*MangerImp) ProcessingEipType ¶
ProcessingEipType return eip type that this controller processing, default is AnycastEIP
func (*MangerImp) ReleaseAnycastIp ¶
Click to show internal directories.
Click to hide internal directories.