Documentation ¶
Index ¶
- func GetRouteCRCondition(status *t1networkingapis.RouteSetStatus, ...) *t1networkingapis.RouteSetCondition
- type RouteManager
- func (rs *RouteManager) CreateCPRoutes(routeSets helper.RouteCRList) ([]*cloudprovider.Route, error)
- func (rs *RouteManager) CreateRouteCR(ctx context.Context, routeInfo *helper.RouteInfo) (helper.RouteCR, error)
- func (rs *RouteManager) DeleteRouteCR(nodeName string) error
- func (rs *RouteManager) ListRouteCR(ctx context.Context, ls metav1.LabelSelector) (helper.RouteCRList, error)
- func (rs *RouteManager) WaitRouteCR(name string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetRouteCRCondition ¶
func GetRouteCRCondition(status *t1networkingapis.RouteSetStatus, conditionType t1networkingapis.RouteSetConditionType) *t1networkingapis.RouteSetCondition
GetRouteCRCondition extracts the provided condition from the given RouteSetStatus and returns that. Returns nil if the condition is not present.
Types ¶
type RouteManager ¶
type RouteManager struct {
// contains filtered or unexported fields
}
RouteManager defines a route manager working with routeset CR
func NewRouteManager ¶
func NewRouteManager(config *rest.Config, clusterNS string) (*RouteManager, error)
NewRouteManager initializes a RouteManager
func NewRouteManagerWithClients ¶
func NewRouteManagerWithClients(clients t1networkingclients.Interface, clusterNS string) (*RouteManager, error)
NewRouteManagerWithClients initializes a RouteManager with clientset
func (*RouteManager) CreateCPRoutes ¶
func (rs *RouteManager) CreateCPRoutes(routeSets helper.RouteCRList) ([]*cloudprovider.Route, error)
CreateCPRoutes creates cloudprovider Routes based on Route CR
func (*RouteManager) CreateRouteCR ¶
func (rs *RouteManager) CreateRouteCR(ctx context.Context, routeInfo *helper.RouteInfo) (helper.RouteCR, error)
CreateRouteCR creates RouteManager CR
func (*RouteManager) DeleteRouteCR ¶
func (rs *RouteManager) DeleteRouteCR(nodeName string) error
DeleteRouteCR deletes corresponding RouteManager CR when there is a node deleted
func (*RouteManager) ListRouteCR ¶
func (rs *RouteManager) ListRouteCR(ctx context.Context, ls metav1.LabelSelector) (helper.RouteCRList, error)
ListRouteCR lists Route CRs belongd to the namespace and the labelselector
func (*RouteManager) WaitRouteCR ¶
func (rs *RouteManager) WaitRouteCR(name string) error
WaitRouteCR validates if route CR condition is Ready
Click to show internal directories.
Click to hide internal directories.