in contrib/cmd/runkperf/commands/data/configmaps/configmap.go [233:247]
func checkConfigmapParams(size int, groupSize int, total int) error {
if size <= 0 {
return fmt.Errorf("size must be greater than 0")
}
if groupSize <= 0 {
return fmt.Errorf("group-size must be greater than 0")
}
if total <= 0 {
return fmt.Errorf("total amount must be greater than 0")
}
if groupSize > total {
return fmt.Errorf("group-size must be less than or equal to total")
}
return nil
}