View Source Bonny.Pluggable.SkipObservedGenerations (bonny v1.4.0)

Halts the pipelines for a defined list of actions if the observed generation equals the resource's generation. It also sets the observed generation value before applying the resource status to the cluster.

Options

  • :actions - The actions for which this rule applies. Defaults to [:add, :modify].
  • :observed_generation_key - The resource status key where the observed generation is stored. This will be passed to Kernel.get_in(). Defaults to ["status", "observedGeneration"].

Usage

step Bonny.Pluggable.SkipObservedGenerations,
  actions: [:add, :modify, :reconcile],
  observed_generation_key: ~w(status internal observedGeneration)