# `Bonny.Pluggable.ApplyStatus`
[🔗](https://github.com/coryodaniel/bonny/blob/v1.5.0/lib/bonny/pluggable/apply_status.ex#L1)

Applies the status of the given `%Bonny.Axn{}` struct to the status subresource.

## Options

  * `:force` and `:field_manager` - Options forwarded to `K8s.Client.apply()`.
  * `:safe_mode` - When `true`, gracefully handles "NotFound" errors that occur when
    a resource is deleted during reconciliation. Instead of crashing, a warning is
    logged and reconciliation continues. Defaults to the value of
    `Application.get_env(:bonny, :apply_status_safe_mode, false)`, falling back to
    `false` for backwards compatibility. See `Bonny.Axn.safe_apply_status/2` for details.
    **Recommended to set to `true` in production** to avoid crashes when resources
    are deleted while being reconciled.

## Global configuration

You can set a default for `safe_mode` across all pipelines in your config:

    config :bonny,
      apply_status_safe_mode: true

Per-step options always take precedence over the global config.

## Examples

    # Standard usage
    step Bonny.Pluggable.ApplyStatus, field_manager: "MyOperator", force: true

    # With safe mode enabled (recommended for production)
    step Bonny.Pluggable.ApplyStatus, safe_mode: true, field_manager: "MyOperator"

---

*Consult [api-reference.md](api-reference.md) for complete listing*
