Documentation ¶
Index ¶
- Variables
- func ValidateConditionalNetworkPolicy(np, oldNP *networking.NetworkPolicy) field.ErrorList
- func ValidateIPBlock(ipb *networking.IPBlock, fldPath *field.Path) field.ErrorList
- func ValidateIngress(ingress *networking.Ingress) 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) field.ErrorList
- func ValidateNetworkPolicyName(name string, prefix bool) []string
- func ValidateNetworkPolicyPeer(peer *networking.NetworkPolicyPeer, peerPath *field.Path) field.ErrorList
- func ValidateNetworkPolicyPort(port *networking.NetworkPolicyPort, portPath *field.Path) field.ErrorList
- func ValidateNetworkPolicySpec(spec *networking.NetworkPolicySpec, fldPath *field.Path) field.ErrorList
- func ValidateNetworkPolicyUpdate(update, old *networking.NetworkPolicy) field.ErrorList
Constants ¶
This section is empty.
Variables ¶
var ValidateIngressName = apimachineryvalidation.NameIsDNSSubdomain
ValidateIngressName validates that the given name can be used as an Ingress name.
Functions ¶
func ValidateConditionalNetworkPolicy ¶ added in v1.14.0
func ValidateConditionalNetworkPolicy(np, oldNP *networking.NetworkPolicy) field.ErrorList
ValidateConditionalNetworkPolicy validates conditionally valid fields.
func ValidateIPBlock ¶ added in v1.8.0
ValidateIPBlock validates a cidr and the except fields of an IpBlock NetworkPolicyPeer
func ValidateIngress ¶ added in v1.14.0
func ValidateIngress(ingress *networking.Ingress) field.ErrorList
ValidateIngress tests if required fields in the Ingress are set.
func ValidateIngressSpec ¶ added in v1.14.0
func ValidateIngressSpec(spec *networking.IngressSpec, fldPath *field.Path) 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 tests if required fields in the Ingress are set.
func ValidateNetworkPolicy ¶
func ValidateNetworkPolicy(np *networking.NetworkPolicy) 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.2
func ValidateNetworkPolicyPeer(peer *networking.NetworkPolicyPeer, peerPath *field.Path) field.ErrorList
ValidateNetworkPolicyPeer validates a NetworkPolicyPeer
func ValidateNetworkPolicyPort ¶ added in v1.11.2
func ValidateNetworkPolicyPort(port *networking.NetworkPolicyPort, portPath *field.Path) field.ErrorList
ValidateNetworkPolicyPort validates a NetworkPolicyPort
func ValidateNetworkPolicySpec ¶
func ValidateNetworkPolicySpec(spec *networking.NetworkPolicySpec, fldPath *field.Path) field.ErrorList
ValidateNetworkPolicySpec tests if required fields in the networkpolicy spec are set.
func ValidateNetworkPolicyUpdate ¶
func ValidateNetworkPolicyUpdate(update, old *networking.NetworkPolicy) field.ErrorList
ValidateNetworkPolicyUpdate tests if an update to a NetworkPolicy is valid.
Types ¶
This section is empty.