route_policy

package
v0.8.0-beta.1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildMirrorTunnelRoutes

func BuildMirrorTunnelRoutes(hubs []*v1alpha2.Hub, importHubName string) []*v1alpha2.Route

Types

type HubInterface

type HubInterface interface {
	ListHubs() []*v1alpha2.Hub
	ListServices(hubName string) []*corev1.Service
}

type RoutePolicyController

type RoutePolicyController struct {
	// contains filtered or unexported fields
}

func (*RoutePolicyController) Run

func (*RoutePolicyController) Sync

func (c *RoutePolicyController) Sync(ctx context.Context)

func (*RoutePolicyController) UpdateRoutePolicyCondition

func (c *RoutePolicyController) UpdateRoutePolicyCondition(name string, routeCount int) error

type RoutePolicyControllerConfig

type RoutePolicyControllerConfig struct {
	Logger       logr.Logger
	Config       *restclient.Config
	HubInterface HubInterface
	Namespace    string
	SyncFunc     func()
}

Jump to

Keyboard shortcuts

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