Documentation ¶
Index ¶
- func NewLBaaSController(kubeClient *unversioned.Client, watchNamespace string, conf map[string]string, ...) (backend.BackendController, error)
- type LBaaSController
- func (lbaas *LBaaSController) GetBindIP(name string) (string, error)
- func (lbaas *LBaaSController) HandleConfigMapCreate(configMap *api.ConfigMap) error
- func (lbaas *LBaaSController) HandleConfigMapDelete(configMap *api.ConfigMap)
- func (lbaas *LBaaSController) HandleNodeCreate(node *api.Node)
- func (lbaas *LBaaSController) HandleNodeDelete(node *api.Node)
- func (lbaas *LBaaSController) HandleNodeUpdate(oldNode *api.Node, curNode *api.Node)
- func (lbaas *LBaaSController) Name() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLBaaSController ¶
func NewLBaaSController(kubeClient *unversioned.Client, watchNamespace string, conf map[string]string, configLabelKey, configLabelValue string) (backend.BackendController, error)
NewLBaaSController creates a LBaaS controller
Types ¶
type LBaaSController ¶
type LBaaSController struct {
// contains filtered or unexported fields
}
LBaaSController Controller to manage LBaaS resources
func (*LBaaSController) GetBindIP ¶
func (lbaas *LBaaSController) GetBindIP(name string) (string, error)
GetBindIP returns the IP used by users to access their apps
func (*LBaaSController) HandleConfigMapCreate ¶
func (lbaas *LBaaSController) HandleConfigMapCreate(configMap *api.ConfigMap) error
HandleConfigMapCreate creates a new lbaas loadbalancer resource
func (*LBaaSController) HandleConfigMapDelete ¶
func (lbaas *LBaaSController) HandleConfigMapDelete(configMap *api.ConfigMap)
HandleConfigMapDelete delete the lbaas loadbalancer resource
func (*LBaaSController) HandleNodeCreate ¶
func (lbaas *LBaaSController) HandleNodeCreate(node *api.Node)
HandleNodeCreate creates new member for this node in every loadbalancer pool
func (*LBaaSController) HandleNodeDelete ¶
func (lbaas *LBaaSController) HandleNodeDelete(node *api.Node)
HandleNodeDelete deletes member for this node
func (*LBaaSController) HandleNodeUpdate ¶
func (lbaas *LBaaSController) HandleNodeUpdate(oldNode *api.Node, curNode *api.Node)
HandleNodeUpdate updates IP of the member for this node if it exists. If it doesnt, it will create a new member
func (*LBaaSController) Name ¶
func (lbaas *LBaaSController) Name() string
Name returns the name of the backend controller
Click to show internal directories.
Click to hide internal directories.