Remove withdrawn feature NetworkPolicyStatus

This commit is contained in:
Ricardo Katz
2023-02-16 13:51:04 -03:00
parent 3f8c4794ea
commit bff8a6cd9f
17 changed files with 115 additions and 772 deletions

View File

@@ -214,11 +214,6 @@ func ValidateNetworkPolicyUpdate(update, old *networking.NetworkPolicy, opts Net
return allErrs
}
// ValidateNetworkPolicyStatusUpdate tests if an update to a NetworkPolicy status is valid
func ValidateNetworkPolicyStatusUpdate(status, oldstatus networking.NetworkPolicyStatus, fldPath *field.Path) field.ErrorList {
return unversionedvalidation.ValidateConditions(status.Conditions, fldPath.Child("conditions"))
}
// ValidateIPBlock validates a cidr and the except fields of an IpBlock NetworkPolicyPeer
func ValidateIPBlock(ipb *networking.IPBlock, fldPath *field.Path) field.ErrorList {
allErrs := field.ErrorList{}