lib

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix            = "ako-gw-"
	GatewayController = "ako.vmware.com/avi-lb"
)
View Source
const (
	GatewayClassGatewayControllerIndex = "GatewayClassGatewayController"
)
View Source
const (
	ZeroAttachedRoutes = 0
)

Variables

Functions

func AKOControlConfig

func AKOControlConfig() *akoControlConfig

func CheckGatewayClassController

func CheckGatewayClassController(controllerName string) bool

func FindListenerByName

func FindListenerByName(name string, listener []gatewayv1.Listener) int

func FindListenerStatusByName

func FindListenerStatusByName(name string, status []gatewayv1.ListenerStatus) int

func FindPortName

func FindPortName(serviceName, ns string, servicePort int32, key string) string

func FindTargetPort

func FindTargetPort(serviceName, ns string, svcPort int32, key string) intstr.IntOrString

func GetChildName

func GetChildName(parentNs, parentName, routeNs, routeName, matchName string) string

child vs name format - ako-gw-clustername--encoded value of ako-gw-clustername--parentNs-parentName-routeNs-routeName-encodedMatch

func GetGatewayParentName

func GetGatewayParentName(namespace, gwName string) string

parent vs name format - ako-gw-clustername--gatewayNs-gatewayName-EVH

func GetPoolGroupName

func GetPoolGroupName(parentNs, parentName, routeNs, routeName, matchName string) string

func GetPoolName

func GetPoolName(parentNs, parentName, routeNs, routeName, matchName, backendNs, backendName, backendPort string) string

func InformersToRegister

func InformersToRegister(kclient *kubernetes.Clientset) ([]string, error)

func VerifyHostnameSubdomainMatch

func VerifyHostnameSubdomainMatch(hostname string) bool

Types

type GatewayAPIInformers

type GatewayAPIInformers struct {
	GatewayInformer      gatewayinformerv1.GatewayInformer
	GatewayClassInformer gatewayinformerv1.GatewayClassInformer
	HTTPRouteInformer    gatewayinformerv1.HTTPRouteInformer
}

Jump to

Keyboard shortcuts

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