Documentation ¶
Index ¶
- Constants
- Variables
- func CreateAppProxyRoute(opts *CreateRouteOpts, useGatewayAPI bool) (string, interface{})
- func CreateDemoPipelinesRoute(opts *CreateRouteOpts, useGatewayAPI bool) (string, interface{})
- func CreateIngress(opts *CreateRouteOpts) *netv1.Ingress
- func CreateWorkflowsRoute(opts *CreateRouteOpts, useGatewayAPI bool) (string, interface{})
- type CreateIngressOptions
- type CreateRouteOpts
- type HTTPProxyRoute
- type HTTPRouteRule
- type IngressPath
- type RoutePath
- type RoutePathType
- type RoutingController
- func GetGatewayController(name string) RoutingController
- func GetIngressController(name string) RoutingController
- func ValidateGatewayController(ctx context.Context, kubeFactory kube.Factory, ...) (RoutingController, error)
- func ValidateIngressController(ctx context.Context, kubeFactory kube.Factory, requestedIngressClass string) (RoutingController, string, error)
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 ( CYAN = "\033[36m" COLOR_RESET = "\033[0m" SupportedIngressControllers = []ingressControllerType{IngressControllerNginxCommunity, IngressControllerNginxEnterprise, IngressControllerIstio, IngressControllerTraefik, IngressControllerAmbassador, IngressControllerALB, IngressControllerNginxCodefresh} )
View Source
var SupportedGatewayControllers = []gatewayControllerType{GatewayControllerContour}
Functions ¶
func CreateAppProxyRoute ¶
func CreateAppProxyRoute(opts *CreateRouteOpts, useGatewayAPI bool) (string, interface{})
func CreateDemoPipelinesRoute ¶
func CreateDemoPipelinesRoute(opts *CreateRouteOpts, useGatewayAPI bool) (string, interface{})
func CreateIngress ¶
func CreateIngress(opts *CreateRouteOpts) *netv1.Ingress
func CreateWorkflowsRoute ¶
func CreateWorkflowsRoute(opts *CreateRouteOpts, useGatewayAPI bool) (string, interface{})
Types ¶
type CreateIngressOptions ¶
type CreateRouteOpts ¶
type HTTPProxyRoute ¶ added in v0.0.497
type HTTPRouteRule ¶
type HTTPRouteRule struct { Path string PathType httproute.PathMatchType ServiceName string ServicePort int32 }
type IngressPath ¶
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 ValidateIngressController ¶ added in v0.0.491
Click to show internal directories.
Click to hide internal directories.