routing

package
v0.1.63 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	IngressControllerNginxCommunity  ingressControllerType = "k8s.io/ingress-nginx"
	IngressControllerNginxEnterprise ingressControllerType = "nginx.org/ingress-controller"
	IngressControllerIstio           ingressControllerType = "istio.io/ingress-controller"
	IngressControllerTraefik         ingressControllerType = "traefik.io/ingress-controller"
	IngressControllerAmbassador      ingressControllerType = "getambassador.io/ingress-controller"
	IngressControllerALB             ingressControllerType = "ingress.k8s.aws/alb"
	IngressControllerNginxCodefresh  ingressControllerType = "k8s.io/ingress-nginx-codefresh"
)
View Source
const GatewayControllerContour gatewayControllerType = "projectcontour.io/projectcontour/contour"

Variables

View Source
var SupportedGatewayControllers = []gatewayControllerType{GatewayControllerContour}

Functions

func CreateIngress

func CreateIngress(opts *CreateRouteOpts) *netv1.Ingress

func CreateInternalRouterInternalRoute added in v0.0.542

func CreateInternalRouterInternalRoute(opts *CreateRouteOpts, useGatewayAPI bool) (string, interface{})

func CreateInternalRouterRoute added in v0.0.542

func CreateInternalRouterRoute(opts *CreateRouteOpts, useGatewayAPI bool, includeInternalRoutes bool, onlyWebhooks bool) (string, interface{})

Types

type CreateIngressOptions

type CreateIngressOptions struct {
	Name             string
	Namespace        string
	IngressClassName string
	Annotations      map[string]string
	Host             string
	Paths            []IngressPath
}

type CreateRouteOpts

type CreateRouteOpts struct {
	Name              string
	RuntimeName       string
	Namespace         string
	IngressClass      string
	Hostname          string
	Paths             []RoutePath
	Annotations       map[string]string
	IngressController RoutingController
	GatewayName       string
	GatewayNamespace  string
}

type HTTPProxyRoute added in v0.0.497

type HTTPProxyRoute struct {
	Path        string
	PathType    string
	ServiceName string
	ServicePort int32
}

type HTTPRouteRule

type HTTPRouteRule struct {
	Path        string
	PathType    httproute.PathMatchType
	ServiceName string
	ServicePort int32
}

type IngressPath

type IngressPath struct {
	Path        string
	PathType    netv1.PathType
	ServiceName string
	ServicePort int32
}

type RoutePath

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

type RoutePathType

type RoutePathType string
const ExactPath RoutePathType = "Exact"
const PrefixPath RoutePathType = "Prefix"
const RegexPath RoutePathType = "Regex"

type RoutingController

type RoutingController interface {
	Name() string
	Decorate(route interface{})
}

func GetGatewayController

func GetGatewayController(name string) RoutingController

func GetIngressController

func GetIngressController(name string) RoutingController

func ValidateGatewayController

func ValidateGatewayController(ctx context.Context, kubeFactory apkkube.Factory, gatewayName, gatewayNamespace string) (RoutingController, error)

func ValidateIngressController added in v0.0.491

func ValidateIngressController(ctx context.Context, kubeFactory apkube.Factory, requestedIngressClass string) (RoutingController, string, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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