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 slim_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.
Types ¶
type Input ¶
type Input struct { GatewayClass gatewayv1beta1.GatewayClass Gateway gatewayv1beta1.Gateway HTTPRoutes []gatewayv1beta1.HTTPRoute TLSRoutes []gatewayv1alpha2.TLSRoute ReferenceGrants []gatewayv1beta1.ReferenceGrant Services []corev1.Service }
Input is the input for GatewayAPI.
Click to show internal directories.
Click to hide internal directories.