Documentation ¶
Index ¶
- func AddEndpointProbe(r *gatewayapi.HTTPRoute, hash string, backend netv1alpha1.IngressBackendSplit)
- func AddOldBackend(r *gatewayapi.HTTPRoute, hash string, old gatewayapi.HTTPBackendRef)
- func HTTPRouteKey(ing *netv1alpha1.Ingress, rule *netv1alpha1.IngressRule) types.NamespacedName
- func LongestHost[S ~[]E, E cmp.Ordered](hosts S) E
- func MakeHTTPRoute(ctx context.Context, ing *netv1alpha1.Ingress, rule *netv1alpha1.IngressRule) (*gatewayapi.HTTPRoute, error)
- func MakeReferenceGrant(_ context.Context, ing *netv1alpha1.Ingress, ...) *gatewayv1beta1.ReferenceGrant
- func RemoveEndpointProbes(r *gatewayapi.HTTPRoute)
- func UpdateProbeHash(r *gatewayapi.HTTPRoute, hash string)
- type HTTPHeaderList
- type HTTPHeaderMatchList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddEndpointProbe ¶ added in v0.41.0
func AddEndpointProbe(r *gatewayapi.HTTPRoute, hash string, backend netv1alpha1.IngressBackendSplit)
func AddOldBackend ¶ added in v0.41.0
func AddOldBackend(r *gatewayapi.HTTPRoute, hash string, old gatewayapi.HTTPBackendRef)
func HTTPRouteKey ¶ added in v0.41.0
func HTTPRouteKey(ing *netv1alpha1.Ingress, rule *netv1alpha1.IngressRule) types.NamespacedName
func LongestHost ¶
LongestHost returns the most specific host. The length is: 1. the length of the hostnames. 2. the first alphabetical order.
For example, "hello-example.default.svc.cluster.local" will be returned from the following hosts in KIngress.
- hosts:
- hello.default
- hello.default.svc
- hello.default.svc.cluster.local
func MakeHTTPRoute ¶
func MakeHTTPRoute( ctx context.Context, ing *netv1alpha1.Ingress, rule *netv1alpha1.IngressRule, ) (*gatewayapi.HTTPRoute, error)
MakeHTTPRoute creates HTTPRoute to set up routing rules.
func MakeReferenceGrant ¶ added in v0.33.0
func MakeReferenceGrant(_ context.Context, ing *netv1alpha1.Ingress, to, from metav1.PartialObjectMetadata) *gatewayv1beta1.ReferenceGrant
Grant the resource "to" access to the resource "from"
func RemoveEndpointProbes ¶ added in v0.41.0
func RemoveEndpointProbes(r *gatewayapi.HTTPRoute)
func UpdateProbeHash ¶ added in v0.41.0
func UpdateProbeHash(r *gatewayapi.HTTPRoute, hash string)
Types ¶
type HTTPHeaderList ¶ added in v0.30.0
type HTTPHeaderList []gatewayapi.HTTPHeader
func (HTTPHeaderList) Len ¶ added in v0.30.0
func (h HTTPHeaderList) Len() int
func (HTTPHeaderList) Less ¶ added in v0.30.0
func (h HTTPHeaderList) Less(i, j int) bool
func (HTTPHeaderList) Swap ¶ added in v0.30.0
func (h HTTPHeaderList) Swap(i, j int)
type HTTPHeaderMatchList ¶ added in v0.30.0
type HTTPHeaderMatchList []gatewayapi.HTTPHeaderMatch
func (HTTPHeaderMatchList) Len ¶ added in v0.30.0
func (h HTTPHeaderMatchList) Len() int
func (HTTPHeaderMatchList) Less ¶ added in v0.30.0
func (h HTTPHeaderMatchList) Less(i, j int) bool
func (HTTPHeaderMatchList) Swap ¶ added in v0.30.0
func (h HTTPHeaderMatchList) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.