ingestion

package
v1.15.5 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package ingestion holds functions that translate from Kubernetes resources into Listener types for storage in the model.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GatewayAPI

func GatewayAPI(input Input) ([]model.HTTPListener, []model.TLSListener)

GatewayAPI translates Gateway API resources into a model. TODO(tam): Support GatewayClass

func Ingress

func Ingress(ing networkingv1.Ingress, defaultSecretNamespace, defaultSecretName string) []model.HTTPListener

Ingress translates an Ingress resource to a HTTPListener. This function does not check IngressClass (via field or annotation). It's expected that only relevant Ingresses will have this function called on them.

func IngressPassthrough added in v1.15.0

func IngressPassthrough(ing networkingv1.Ingress, defaultSecretNamespace, defaultSecretName string) []model.TLSListener

IngressPassthrough translates an Ingress resource with the tls-passthrough annotation to a TLSListener. This function does not check IngressClass (via field or annotation). It's expected that only relevant Ingresses will have this function called on them.

Ingress objects with SSL Passthrough enabled have the following properties:

* must have a host set * rules with paths other than '/' are ignored * default backends are ignored

Types

type Input

type Input struct {
	GatewayClass    gatewayv1.GatewayClass
	Gateway         gatewayv1.Gateway
	HTTPRoutes      []gatewayv1.HTTPRoute
	TLSRoutes       []gatewayv1alpha2.TLSRoute
	GRPCRoutes      []gatewayv1alpha2.GRPCRoute
	ReferenceGrants []gatewayv1beta1.ReferenceGrant
	Services        []corev1.Service
}

Input is the input for GatewayAPI.

Jump to

Keyboard shortcuts

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