def build_manifest(args):
    """Build manifest from arguments provided on the CLI."""
    return {
        'apiVersion': 'solutions.metalk8s.scality.com/v1alpha1',
        'kind': 'Solution',
        'metadata': {
            'name': args.name,
            'annotations': dict(args.annotations),
            'labels': dict(args.labels),
        },
        'spec': {
            'images': list(set(
                ':'.join(image) for image in (
                    args.extra_images + [args.operator_image]
                )
            )),
            'operator': {
                'image': dict(zip(('name', 'tag'), args.operator_image)),
            },
            'version': args.version,
        },
    }