Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateHTTPRoute ¶
func ValidateHTTPRoute( ctx context.Context, routesValidator routeValidator, translatorFeatures translator.FeatureFlags, httproute *gatewayapi.HTTPRoute, managerClient client.Client, ) (bool, string, error)
ValidateHTTPRoute provides a suite of validation for a given HTTPRoute and any number of Gateway resources it's attached to that the caller wants to have it validated against. It checks supported features, linked objects, and uses provided routesValidator to validate the route against Kong Gateway validation endpoint.
func ValidateHTTPRouteParentRefs ¶ added in v3.1.0
func ValidateHTTPRouteParentRefs(httproute *gatewayapi.HTTPRoute) error
ValidateHTTPRouteParentRefs checks the group/kind of each parentRef in spec and allows only empty or `gateway.networking.k8s.io.Gateway`.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.