code: func ValidateNetworkPolicyName(name string, prefix bool) []string {
  	return apimachineryvalidation.NameIsDNSSubdomain(name, prefix)
  }
docs: // ValidateNetworkPolicyName can be used to check whether the given networkpolicy
  // name is valid.