Documentation ¶
Index ¶
- Variables
- func ValidateIPAddress(ipAddress *networking.IPAddress) field.ErrorList
- func ValidateIPAddressName(name string, prefix bool) []string
- func ValidateIPAddressUpdate(update, old *networking.IPAddress) field.ErrorList
- func ValidateIPBlock(ipb *networking.IPBlock, fldPath *field.Path) field.ErrorList
- func ValidateIngressClass(ingressClass *networking.IngressClass) field.ErrorList
- func ValidateIngressClassUpdate(newIngressClass, oldIngressClass *networking.IngressClass) field.ErrorList
- func ValidateIngressCreate(ingress *networking.Ingress) field.ErrorList
- func ValidateIngressLoadBalancerStatus(status *networking.IngressLoadBalancerStatus, fldPath *field.Path) field.ErrorList
- func ValidateIngressSpec(spec *networking.IngressSpec, fldPath *field.Path, ...) field.ErrorList
- func ValidateIngressStatusUpdate(ingress, oldIngress *networking.Ingress) field.ErrorList
- func ValidateIngressUpdate(ingress, oldIngress *networking.Ingress) field.ErrorList
- func ValidateNetworkPolicy(np *networking.NetworkPolicy, opts NetworkPolicyValidationOptions) field.ErrorList
- func ValidateNetworkPolicyName(name string, prefix bool) []string
- func ValidateNetworkPolicyPeer(peer *networking.NetworkPolicyPeer, opts NetworkPolicyValidationOptions, ...) field.ErrorList
- func ValidateNetworkPolicyPort(port *networking.NetworkPolicyPort, portPath *field.Path) field.ErrorList
- func ValidateNetworkPolicySpec(spec *networking.NetworkPolicySpec, opts NetworkPolicyValidationOptions, ...) field.ErrorList
- func ValidateNetworkPolicyUpdate(update, old *networking.NetworkPolicy, opts NetworkPolicyValidationOptions) field.ErrorList
- func ValidateServiceCIDR(cidrConfig *networking.ServiceCIDR) field.ErrorList
- func ValidateServiceCIDRStatusUpdate(update, old *networking.ServiceCIDR) field.ErrorList
- func ValidateServiceCIDRUpdate(update, old *networking.ServiceCIDR) field.ErrorList
- type IngressValidationOptions
- type NetworkPolicyValidationOptions
Constants ¶
This section is empty.
Variables ¶
var ValidateIngressClassName = apimachineryvalidation.NameIsDNSSubdomain
ValidateIngressClassName validates that the given name can be used as an IngressClass name.
var ValidateIngressName = apimachineryvalidation.NameIsDNSSubdomain
ValidateIngressName validates that the given name can be used as an Ingress name.
var ValidateServiceCIDRName = apimachineryvalidation.NameIsDNSSubdomain
Functions ¶
func ValidateIPAddress ¶ added in v1.27.0
func ValidateIPAddress(ipAddress *networking.IPAddress) field.ErrorList
func ValidateIPAddressName ¶ added in v1.27.0
ValidateIPAddressName validates that the name is the decimal representation of an IP address. IPAddress does not support generating names, prefix is not considered.
func ValidateIPAddressUpdate ¶ added in v1.27.0
func ValidateIPAddressUpdate(update, old *networking.IPAddress) field.ErrorList
ValidateIPAddressUpdate tests if an update to an IPAddress is valid.
func ValidateIPBlock ¶ added in v1.8.0
ValidateIPBlock validates a cidr and the except fields of an IpBlock NetworkPolicyPeer
func ValidateIngressClass ¶ added in v1.18.0
func ValidateIngressClass(ingressClass *networking.IngressClass) field.ErrorList
ValidateIngressClass ensures that IngressClass resources are valid.
func ValidateIngressClassUpdate ¶ added in v1.18.0
func ValidateIngressClassUpdate(newIngressClass, oldIngressClass *networking.IngressClass) field.ErrorList
ValidateIngressClassUpdate ensures that IngressClass updates are valid.
func ValidateIngressCreate ¶ added in v1.18.0
func ValidateIngressCreate(ingress *networking.Ingress) field.ErrorList
ValidateIngressCreate validates Ingresses on create.
func ValidateIngressLoadBalancerStatus ¶ added in v1.26.0
func ValidateIngressLoadBalancerStatus(status *networking.IngressLoadBalancerStatus, fldPath *field.Path) field.ErrorList
ValidateLIngressoadBalancerStatus validates required fields on an IngressLoadBalancerStatus
func ValidateIngressSpec ¶ added in v1.14.0
func ValidateIngressSpec(spec *networking.IngressSpec, fldPath *field.Path, opts IngressValidationOptions) field.ErrorList
ValidateIngressSpec tests if required fields in the IngressSpec are set.
func ValidateIngressStatusUpdate ¶ added in v1.14.0
func ValidateIngressStatusUpdate(ingress, oldIngress *networking.Ingress) field.ErrorList
ValidateIngressStatusUpdate tests if required fields in the Ingress are set when updating status.
func ValidateIngressUpdate ¶ added in v1.14.0
func ValidateIngressUpdate(ingress, oldIngress *networking.Ingress) field.ErrorList
ValidateIngressUpdate validates ingresses on update.
func ValidateNetworkPolicy ¶
func ValidateNetworkPolicy(np *networking.NetworkPolicy, opts NetworkPolicyValidationOptions) field.ErrorList
ValidateNetworkPolicy validates a networkpolicy.
func ValidateNetworkPolicyName ¶
ValidateNetworkPolicyName can be used to check whether the given networkpolicy name is valid.
func ValidateNetworkPolicyPeer ¶ added in v1.11.0
func ValidateNetworkPolicyPeer(peer *networking.NetworkPolicyPeer, opts NetworkPolicyValidationOptions, peerPath *field.Path) field.ErrorList
ValidateNetworkPolicyPeer validates a NetworkPolicyPeer
func ValidateNetworkPolicyPort ¶ added in v1.11.0
func ValidateNetworkPolicyPort(port *networking.NetworkPolicyPort, portPath *field.Path) field.ErrorList
ValidateNetworkPolicyPort validates a NetworkPolicyPort
func ValidateNetworkPolicySpec ¶
func ValidateNetworkPolicySpec(spec *networking.NetworkPolicySpec, opts NetworkPolicyValidationOptions, fldPath *field.Path) field.ErrorList
ValidateNetworkPolicySpec tests if required fields in the networkpolicy spec are set.
func ValidateNetworkPolicyUpdate ¶
func ValidateNetworkPolicyUpdate(update, old *networking.NetworkPolicy, opts NetworkPolicyValidationOptions) field.ErrorList
ValidateNetworkPolicyUpdate tests if an update to a NetworkPolicy is valid.
func ValidateServiceCIDR ¶ added in v1.29.0
func ValidateServiceCIDR(cidrConfig *networking.ServiceCIDR) field.ErrorList
func ValidateServiceCIDRStatusUpdate ¶ added in v1.29.0
func ValidateServiceCIDRStatusUpdate(update, old *networking.ServiceCIDR) field.ErrorList
ValidateServiceCIDRStatusUpdate tests if if an update to a ServiceCIDR Status is valid.
func ValidateServiceCIDRUpdate ¶ added in v1.29.0
func ValidateServiceCIDRUpdate(update, old *networking.ServiceCIDR) field.ErrorList
ValidateServiceCIDRUpdate tests if an update to a ServiceCIDR is valid.
Types ¶
type IngressValidationOptions ¶ added in v1.18.0
type IngressValidationOptions struct { // AllowInvalidSecretName indicates whether spec.tls[*].secretName values that are not valid Secret names should be allowed AllowInvalidSecretName bool // AllowInvalidWildcardHostRule indicates whether invalid rule values are allowed in rules with wildcard hostnames AllowInvalidWildcardHostRule bool }
IngressValidationOptions cover beta to GA transitions for HTTP PathType
type NetworkPolicyValidationOptions ¶ added in v1.26.0
type NetworkPolicyValidationOptions struct {
AllowInvalidLabelValueInSelector bool
}
func ValidationOptionsForNetworking ¶ added in v1.26.0
func ValidationOptionsForNetworking(new, old *networking.NetworkPolicy) NetworkPolicyValidationOptions
ValidationOptionsForNetworking generates NetworkPolicyValidationOptions for Networking