routeset

package
v1.29.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 17, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRouteCRCondition

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL