def deployment_status_enricher(event: DeploymentEvent):
    """
    Enrich the finding with deployment status conditions.

    Usually these conditions can provide important information regarding possible issues.
    """
    deployment = event.get_deployment()
    if not deployment:
        logging.error(f"cannot run deployment_status_enricher on event with no deployment: {event}")
        return

    block_list: List[BaseBlock] = []
    block_list.append(MarkdownBlock("*Deployment status details:*"))
    for condition in deployment.status.conditions:
        block_list.append(MarkdownBlock(f"*{condition.reason} -* {condition.message}"))
    event.add_enrichment(block_list)

    Enrich the finding with deployment status conditions.

    Usually these conditions can provide important information regarding possible issues.
    
playbooks/robusta_playbooks/deployment_enrichments.py