def daemonset_status_enricher(event: DaemonSetEvent):
    """
    Enrich the finding with daemon set stats.

    Includes recommendations for the identified cause.
    """
    ds = event.get_daemonset()
    if not ds:
        logging.error(f"cannot run DaemonsetEnricher on event with no daemonset: {event}")
        return

    event.add_enrichment(
        [
            MarkdownBlock(f"*Daemonset Stats for {ds.metadata.name}*"),
            KubernetesFieldsBlock(
                ds,
                [
                    "status.desiredNumberScheduled",
                    "status.currentNumberScheduled",
                    "status.numberAvailable",
                    "status.numberMisscheduled",
                ],
            ),
            MarkdownBlock(
                "_Daemonset lifecycle: pods start out as desired, then get scheduled, and then become available. "
                "If Kubernetes then decides a pod shouldn't be running on a node after all, it becomes "
                "misscheduled._"
            ),
        ]
    )

    Enrich the finding with daemon set stats.

    Includes recommendations for the identified cause.
    
playbooks/robusta_playbooks/daemonsets.py