Documentation ¶
Overview ¶
Package validation has functions for validating the correctness of api objects and explaining what's wrong with them when they're not valid.
Index ¶
- func ValidateGRPCRoute(route *gatewayv1a2.GRPCRoute) field.ErrorList
- func ValidateGateway(gw *gatewayv1a2.Gateway) field.ErrorList
- func ValidateGatewayClassUpdate(oldClass, newClass *gatewayv1a2.GatewayClass) field.ErrorList
- func ValidateHTTPRoute(route *gatewayv1a2.HTTPRoute) field.ErrorList
- func ValidateTCPRoute(route *gatewayv1a2.TCPRoute) field.ErrorList
- func ValidateTLSRoute(route *gatewayv1a2.TLSRoute) field.ErrorList
- func ValidateUDPRoute(route *gatewayv1a2.UDPRoute) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateGRPCRoute ¶ added in v0.6.0
func ValidateGRPCRoute(route *gatewayv1a2.GRPCRoute) field.ErrorList
ValidateGRPCRoute validates GRPCRoute according to the Gateway API specification. For additional details of the GRPCRoute spec, refer to: https://gateway-api.sigs.k8s.io/v1alpha2/references/spec/#gateway.networking.k8s.io/v1alpha2.GRPCRoute
func ValidateGateway ¶
func ValidateGateway(gw *gatewayv1a2.Gateway) field.ErrorList
ValidateGateway validates gw according to the Gateway API specification. For additional details of the Gateway spec, refer to:
https://gateway-api.sigs.k8s.io/v1alpha2/references/spec/#gateway.networking.k8s.io/v1alpha2.Gateway
Validation that is not possible with CRD annotations may be added here in the future. See https://github.com/kubernetes-sigs/gateway-api/issues/868 for more information.
func ValidateGatewayClassUpdate ¶
func ValidateGatewayClassUpdate(oldClass, newClass *gatewayv1a2.GatewayClass) field.ErrorList
ValidateGatewayClassUpdate validates an update to oldClass according to the Gateway API specification. For additional details of the GatewayClass spec, refer to: https://gateway-api.sigs.k8s.io/v1alpha2/references/spec/#gateway.networking.k8s.io/v1alpha2.GatewayClass
func ValidateHTTPRoute ¶
func ValidateHTTPRoute(route *gatewayv1a2.HTTPRoute) field.ErrorList
ValidateHTTPRoute validates HTTPRoute according to the Gateway API specification. For additional details of the HTTPRoute spec, refer to: https://gateway-api.sigs.k8s.io/v1beta1/references/spec/#gateway.networking.k8s.io/v1beta1.HTTPRoute
func ValidateTCPRoute ¶ added in v0.6.0
func ValidateTCPRoute(route *gatewayv1a2.TCPRoute) field.ErrorList
ValidateTCPRoute validates TCPRoute according to the Gateway API specification. For additional details of the TCPRoute spec, refer to: https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1alpha2.TCPRoute
func ValidateTLSRoute ¶ added in v0.6.0
func ValidateTLSRoute(route *gatewayv1a2.TLSRoute) field.ErrorList
ValidateTLSRoute validates TLSRoute according to the Gateway API specification. For additional details of the TLSRoute spec, refer to: https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1alpha2.TLSRoute
func ValidateUDPRoute ¶ added in v0.6.0
func ValidateUDPRoute(route *gatewayv1a2.UDPRoute) field.ErrorList
ValidateUDPRoute validates UDPRoute according to the Gateway API specification. For additional details of the UDPRoute spec, refer to: https://gateway-api.sigs.k8s.io/references/spec/#gateway.networking.k8s.io/v1alpha2.UDPRoute
Types ¶
This section is empty.