def validate_max_pods(namespace):
    'Validates that max_pods is set to a reasonable minimum number.'
    minimum_pods_required = ceil(((((namespace.node_count * 2) + 6) + 1) / namespace.node_count))
    if ((namespace.max_pods != 0) and (namespace.max_pods < minimum_pods_required)):
        raise CLIError('--max-pods must be at least {} for a managed Kubernetes cluster to function.'.format(minimum_pods_required))
Validates that max_pods is set to a reasonable minimum number.
def validate_max_pods(namespace):
    
    minimum_pods_required = ceil(((((namespace.node_count * 2) + 6) + 1) / namespace.node_count))
    if ((namespace.max_pods != 0) and (namespace.max_pods < minimum_pods_required)):
        raise CLIError('--max-pods must be at least {} for a managed Kubernetes cluster to function.'.format(minimum_pods_required))