func validateBandwidthIsReasonable(rsrc *resource.Quantity) error { if rsrc.Value() < minRsrc.Value() { return fmt.Errorf("resource is unreasonably small (< 1kbit)") } if rsrc.Value() > maxRsrc.Value() { return fmt.Errorf("resoruce is unreasonably large (> 1Pbit)") } return nil }