Skip to content
This repository has been archived by the owner on Sep 14, 2020. It is now read-only.

Move handler structures to kopf.structs package #332

Merged
merged 4 commits into from
Mar 26, 2020

Commits on Mar 18, 2020

  1. Move handler field types to handlers

    Once the handlers were moved away into its own separate module,
    it makes no sense to keep the types of some of the handlers' fields
    in other modules (such as causation).
    
    Instead, it should be all together with handlers — and so we can move
    the whole thing to the `kopf.structs` package eventually (next commit).
    Because all of them are structs after all, not the reactor's processes.
    nolar committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    088d293 View commit details
    Browse the repository at this point in the history
  2. Move handlers definitions to structs package

    Because they are structs, after all. Also, in the few following
    commits, the daemons structs will be introduced, and they need
    to import and use handlers, from which they were spawned. It would
    be problematic to import a high-level `reactor.handlers` from
    a low-level `structs.containers` (if not moved).
    nolar committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    6229f01 View commit details
    Browse the repository at this point in the history
  3. Move in-memory handler execution back to "activities only"

    Originally, the hope was to reuse them in daemons & timers. But this
    breaks the semantics of the handlers: patches should be applied
    on every exit, not only on successes; multiple restarts should
    be counted & limited and distributed with backoffs; extra daemon
    restarts are not needed at all if regular retrying works; etc.
    nolar committed Mar 18, 2020
    Configuration menu
    Copy the full SHA
    14078da View commit details
    Browse the repository at this point in the history

Commits on Mar 25, 2020

  1. Configuration menu
    Copy the full SHA
    938bf03 View commit details
    Browse the repository at this point in the history